Sha256: c16577759b9206c276964e893aa7adc4bb094c655374935a3f862042c48b814c

Contents?: true

Size: 579 Bytes

Versions: 2

Compression:

Stored size: 579 Bytes

Contents

module TresDelta
  class CreditCard
    attr_reader :number, :expiration_month, :expiration_year, :token, :name, :billing_address, :type, :nickname

    def initialize(params = {})
      @number           = params[:number]
      @expiration_month = params[:expiration_month]
      @expiration_year  = params[:expiration_year]
      @token            = params[:token]
      @name             = params[:name]
      @billing_address  = Address.new(params[:billing_address] || {})
      @type             = params[:type]
      @nickname         = params[:nickname]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tres_delta-0.0.2 lib/tres_delta/credit_card.rb
tres_delta-0.0.1 lib/tres_delta/credit_card.rb