class ActiveMerchant::Billing::Model

Public Class Methods

new(attributes = {}) click to toggle source
# File lib/active_merchant/billing/model.rb, line 10
def initialize(attributes = {})
  attributes.each do |key, value|
    send("#{key}=", value)
  end
end

Public Instance Methods

validate() click to toggle source
# File lib/active_merchant/billing/model.rb, line 16
def validate
  {}
end

Private Instance Methods

errors_hash(array) click to toggle source
# File lib/active_merchant/billing/model.rb, line 22
def errors_hash(array)
  array.inject({}) do |hash, (attribute, error)|
    (hash[attribute] ||= []) << error
    hash
  end
end