Method: ActiveMerchant::Billing::Model#initialize

Defined in:
lib/active_merchant/billing/model.rb

#initialize(attributes = {}) ⇒ Model

Returns a new instance of Model.

[View source] [View on GitHub]

10
11
12
13
14
# File 'lib/active_merchant/billing/model.rb', line 10

def initialize(attributes = {})
  attributes.each do |key, value|
    send("#{key}=", value)
  end
end