Class: Sunspot::Rails::StubSessionProxy::PaginatedCollection

Inherits:
Array
  • Object
show all
Defined in:
sunspot_rails/lib/sunspot/rails/stub_session_proxy.rb

Instance Method Summary (collapse)

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?

Returns:

  • (Boolean)


114
115
116
# File 'sunspot_rails/lib/sunspot/rails/stub_session_proxy.rb', line 114

def first_page?
  true
end

- (Boolean) last_page?

Returns:

  • (Boolean)


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?

Returns:

  • (Boolean)


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