Class: Sunspot::Rails::StubSessionProxy::PaginatedCollection
- Inherits:
-
Array
- Object
- Array
- Sunspot::Rails::StubSessionProxy::PaginatedCollection
- Defined in:
- sunspot_rails/lib/sunspot/rails/stub_session_proxy.rb
Instance Method Summary (collapse)
- - (Object) current_page
- - (Boolean) first_page?
- - (Boolean) last_page?
- - (Object) next_page
- - (Object) offset
- - (Boolean) out_of_bounds?
- - (Object) per_page (also: #limit_value)
- - (Object) previous_page
- - (Object) total_count (also: #total_entries)
- - (Object) total_pages (also: #num_pages)
Instance Method Details
- (Object) current_page
100 101 102 |
# File 'sunspot_rails/lib/sunspot/rails/stub_session_proxy.rb', line 100 def current_page 1 end |
- (Boolean) first_page?
114 115 116 |
# File 'sunspot_rails/lib/sunspot/rails/stub_session_proxy.rb', line 114 def first_page? true end |
- (Boolean) last_page?
118 119 120 |
# File 'sunspot_rails/lib/sunspot/rails/stub_session_proxy.rb', line 118 def last_page? true end |
- (Object) next_page
126 127 128 |
# File 'sunspot_rails/lib/sunspot/rails/stub_session_proxy.rb', line 126 def next_page nil end |
- (Object) offset
134 135 136 |
# File 'sunspot_rails/lib/sunspot/rails/stub_session_proxy.rb', line 134 def offset 0 end |
- (Boolean) out_of_bounds?
130 131 132 |
# File 'sunspot_rails/lib/sunspot/rails/stub_session_proxy.rb', line 130 def out_of_bounds? false end |
- (Object) per_page Also known as: limit_value
104 105 106 |
# File 'sunspot_rails/lib/sunspot/rails/stub_session_proxy.rb', line 104 def per_page 30 end |
- (Object) previous_page
122 123 124 |
# File 'sunspot_rails/lib/sunspot/rails/stub_session_proxy.rb', line 122 def previous_page nil end |
- (Object) total_count Also known as: total_entries
95 96 97 |
# File 'sunspot_rails/lib/sunspot/rails/stub_session_proxy.rb', line 95 def total_count 0 end |
- (Object) total_pages Also known as: num_pages
109 110 111 |
# File 'sunspot_rails/lib/sunspot/rails/stub_session_proxy.rb', line 109 def total_pages 1 end |