Sha256: 0da3d707f9d648ec3cbb196e3c4db4ddd0c8ccbcd14d82e1a82007451c291e46

Contents?: true

Size: 690 Bytes

Versions: 11

Compression:

Stored size: 690 Bytes

Contents

module VaultedBilling
  class Transaction
    attr_accessor :id
    attr_accessor :authcode
    attr_accessor :avs_response
    attr_accessor :cvv_response
    attr_accessor :code
    attr_accessor :message

    def initialize(attributes = {})
      attributes.each_pair do |key, value|
        send("#{key}=", value) if respond_to?("#{key}=")
      end
    end

    def to_vaulted_billing; self; end

    def ==(o)
      attributes == o.attributes
    end

    def attributes
      {
        :id => id,
        :authcode => authcode,
        :avs_response => avs_response,
        :cvv_response => cvv_response,
        :code => code,
        :message => message
      }
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
vaulted_billing-0.0.12 lib/vaulted_billing/transaction.rb
vaulted_billing-0.0.11 lib/vaulted_billing/transaction.rb
vaulted_billing-0.0.10 lib/vaulted_billing/transaction.rb
vaulted_billing-0.0.9 lib/vaulted_billing/transaction.rb
vaulted_billing-0.0.8 lib/vaulted_billing/transaction.rb
vaulted_billing-0.0.7 lib/vaulted_billing/transaction.rb
vaulted_billing-0.0.6 lib/vaulted_billing/transaction.rb
vaulted_billing-0.0.5 lib/vaulted_billing/transaction.rb
vaulted_billing-0.0.4 lib/vaulted_billing/transaction.rb
vaulted_billing-0.0.3 lib/vaulted_billing/transaction.rb
vaulted_billing-0.0.2 lib/vaulted_billing/transaction.rb