Class: Nineflats::PaginatedArray
- Inherits:
-
Array
- Object
- Array
- Nineflats::PaginatedArray
- Defined in:
- lib/nineflats-api/paginated_array.rb
Instance Attribute Summary collapse
-
#current_page ⇒ Object
Returns the value of attribute current_page.
-
#full_url ⇒ Object
Returns the value of attribute full_url.
-
#next_page_url ⇒ Object
Returns the value of attribute next_page_url.
-
#per_page ⇒ Object
Returns the value of attribute per_page.
-
#self_url ⇒ Object
Returns the value of attribute self_url.
-
#total_entries ⇒ Object
Returns the value of attribute total_entries.
-
#total_pages ⇒ Object
Returns the value of attribute total_pages.
Instance Method Summary collapse
Instance Attribute Details
#current_page ⇒ Object
Returns the value of attribute current_page.
3 4 5 |
# File 'lib/nineflats-api/paginated_array.rb', line 3 def current_page @current_page end |
#full_url ⇒ Object
Returns the value of attribute full_url.
3 4 5 |
# File 'lib/nineflats-api/paginated_array.rb', line 3 def full_url @full_url end |
#next_page_url ⇒ Object
Returns the value of attribute next_page_url.
3 4 5 |
# File 'lib/nineflats-api/paginated_array.rb', line 3 def next_page_url @next_page_url end |
#per_page ⇒ Object
Returns the value of attribute per_page.
3 4 5 |
# File 'lib/nineflats-api/paginated_array.rb', line 3 def per_page @per_page end |
#self_url ⇒ Object
Returns the value of attribute self_url.
3 4 5 |
# File 'lib/nineflats-api/paginated_array.rb', line 3 def self_url @self_url end |
#total_entries ⇒ Object
Returns the value of attribute total_entries.
3 4 5 |
# File 'lib/nineflats-api/paginated_array.rb', line 3 def total_entries @total_entries end |
#total_pages ⇒ Object
Returns the value of attribute total_pages.
3 4 5 |
# File 'lib/nineflats-api/paginated_array.rb', line 3 def total_pages @total_pages end |
Instance Method Details
#next_page ⇒ Object
6 7 8 |
# File 'lib/nineflats-api/paginated_array.rb', line 6 def next_page Place.search_result(next_page_url) end |