Class: Nineflats::PaginatedArray

Inherits:
Array
  • Object
show all
Defined in:
lib/nineflats-api/paginated_array.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#current_pageObject

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_urlObject

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_urlObject

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_pageObject

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_urlObject

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_entriesObject

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_pagesObject

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_pageObject



6
7
8
# File 'lib/nineflats-api/paginated_array.rb', line 6

def next_page
  Place.search_result(next_page_url)
end