Class: Groonga::TooSmallPageSize

Inherits:
Error
  • Object
show all
Defined in:
lib/groonga/pagination.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_sizesObject (readonly)

有効なページサイズ。Range。



58
59
60
# File 'lib/groonga/pagination.rb', line 58

def available_page_sizes
  @available_page_sizes
end

#page_sizeObject (readonly)

指定したページサイズ。



56
57
58
# File 'lib/groonga/pagination.rb', line 56

def page_size
  @page_size
end