Class: Groonga::TooSmallPageSize
- Defined in:
- lib/groonga/pagination.rb
Instance Attribute Summary collapse
-
#available_page_sizes ⇒ Object
readonly
有効なページサイズ。Range。.
-
#page_size ⇒ Object
readonly
指定したページサイズ。.
Instance Method Summary collapse
-
#initialize(page_size, available_page_sizes) ⇒ TooSmallPageSize
constructor
A new instance of TooSmallPageSize.
Constructor Details
#initialize(page_size, available_page_sizes) ⇒ TooSmallPageSize
Returns a new instance of TooSmallPageSize.
59 60 61 62 63 64 |
# File 'lib/groonga/pagination.rb', line 59 def initialize(page_size, available_page_sizes) @page_size = page_size @available_page_sizes = available_page_sizes super("too small page size: #{@page_size}: " + "available page sizes: #{@available_page_sizes.inspect}") end |
Instance Attribute Details
#available_page_sizes ⇒ Object (readonly)
有効なページサイズ。Range。
58 59 60 |
# File 'lib/groonga/pagination.rb', line 58 def available_page_sizes @available_page_sizes end |
#page_size ⇒ Object (readonly)
指定したページサイズ。
56 57 58 |
# File 'lib/groonga/pagination.rb', line 56 def page_size @page_size end |