Class: ActiveMerchant::Billing::Model

Inherits:
Object
  • Object
show all
Includes:
Compatibility::Model, Empty
Defined in:
lib/active_merchant/billing/model.rb

Direct Known Subclasses

Check, CreditCard, OrbitalSoftDescriptors

Instance Method Summary collapse

Methods included from Compatibility::Model

#errors, #valid?

Constructor Details

#initialize(attributes = {}) ⇒ Model

Returns a new instance of Model.



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

Instance Method Details

#validateObject



16
17
18
# File 'lib/active_merchant/billing/model.rb', line 16

def validate
  {}
end