class Skroutz::PaginatedCollection

Attributes

context[R]
response[R]

Public Class Methods

new(context, response, collection) click to toggle source
Calls superclass method
# File lib/skroutz/paginated_collection.rb, line 8
def initialize(context, response, collection)
  @context = context
  @response = response

  super(collection)
end

Public Instance Methods

first_page?() click to toggle source
# File lib/skroutz/paginated_collection.rb, line 15
def first_page?
  !first?
end
last_page?() click to toggle source
# File lib/skroutz/paginated_collection.rb, line 19
def last_page?
  !last?
end
meta() click to toggle source
# File lib/skroutz/paginated_collection.rb, line 42
def meta
  @meta ||= parse_meta(response)
end