Method: WebPay::ChargeListRequest#initialize

Defined in:
lib/webpay/data_types.rb

#initialize(hash = {}) ⇒ ChargeListRequest

Returns a new instance of ChargeListRequest.



620
621
622
623
624
# File 'lib/webpay/data_types.rb', line 620

def initialize(hash = {})
  hash = normalize_hash(hash)
  hash['created'] = hash['created'].is_a?(Hash) ? WebPay::CreatedRange.new(hash['created']) : hash['created']
  @attributes = hash
end