Class: Groonga::TooSmallPage

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(page, available_pages) ⇒ TooSmallPage

Returns a new instance of TooSmallPage.



27
28
29
30
31
32
# File 'lib/groonga/pagination.rb', line 27

def initialize(page, available_pages)
  @page = page
  @available_pages = available_pages
  super("too small page: #{@page}: " +
        "available pages: #{@available_pages.inspect}")
end

Instance Attribute Details

#available_pagesObject (readonly)

有効なページ。Range。



26
27
28
# File 'lib/groonga/pagination.rb', line 26

def available_pages
  @available_pages
end

#pageObject (readonly)

指定したページ番号。



24
25
26
# File 'lib/groonga/pagination.rb', line 24

def page
  @page
end