class AteTracks::Structures::Pagination

Attributes

current_page[RW]
next_page[RW]
next_page_path[RW]
offset_by[RW]
per_page[RW]
previous_page[RW]
total_entries[RW]
total_pages[RW]

Public Class Methods

new(data) click to toggle source
# File lib/atetracks/structures.rb, line 232
def initialize(data)
  return nil if data.nil?
  @current_page = data['current_page']
  @per_page = data['per_page']
  @offset_by = data['offset_by']
  @next_page = data['next_page']
  @previous_page = data['previous_page']
  @total_entries = data['total_entries']
  @total_pages = data['total_pages']
  @next_page_path = data['next_page_path']
end