module SparkApi::PaginateResponse

Paginate Api Responses

Module used by the request layer to decorate the response's results array with paging support. Pagination only happens if the response includes the pagination information as specified by the API.

Attributes

results[RW]

Public Instance Methods

method_missing(method_symbol, *arguments) click to toggle source
Calls superclass method
# File lib/spark_api/paginate.rb, line 68
def method_missing(method_symbol, *arguments)
  if results.respond_to?(method_symbol)
    arguments.empty? ? self.results.send(method_symbol) : self.results.send(method_symbol, arguments)
  else
    super
  end
end