Sha256: a48649c759c65df10cec0a0d025d709c62fe49396470511859993a9e21e4e820

Contents?: true

Size: 638 Bytes

Versions: 2

Compression:

Stored size: 638 Bytes

Contents

module VaultedBilling
  class CreditCard
    attr_accessor :id
    attr_accessor :currency
    attr_accessor :card_number
    attr_accessor :cvv_number
    attr_accessor :expires_on
    attr_accessor :first_name
    attr_accessor :last_name
    attr_accessor :street_address
    attr_accessor :locality
    attr_accessor :region
    attr_accessor :postal_code
    attr_accessor :country
    attr_accessor :phone

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vaulted_billing-0.0.1 lib/vaulted_billing/credit_card.rb
vaulted_billing-0.0.0 lib/vaulted_billing/credit_card.rb