class Tinypass::Gateway::PagedList

Public Class Methods

new(parsed_response) click to toggle source
Calls superclass method
# File lib/tinypass/gateway.rb, line 116
def initialize(parsed_response)
  @list = []
  raw_access_details = parsed_response.delete('data')

  raw_access_details.each do |d|
    @list << AccessDetails.new(d)
  end

  super(parsed_response)
end

Public Instance Methods

each(&block) click to toggle source
# File lib/tinypass/gateway.rb, line 127
def each(&block)
  @list.each(&block)
end