Sha256: 67471505c7945601339fce1eaa595b8fa30d1380e46d28e3010ecce806492ed1

Contents?: true

Size: 526 Bytes

Versions: 5

Compression:

Stored size: 526 Bytes

Contents

module Gateway

  class CreditCard

    attr_accessor :InstantBuyKey

    attr_accessor :CreditCardNumber

    attr_accessor :HolderName

    attr_accessor :SecurityCode

    attr_accessor :ExpMonth

    attr_accessor :ExpYear

    attr_accessor :CreditCardBrand

    attr_accessor :BillingAddress

    def initialize
      @BillingAddress = BillingAddress.new
    end

    def to_json
      hash = {}
      instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
      hash
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
mundipagg_sdk-1.4.1 lib/gateway/CreditCardTransaction/credit_card.rb
stone_ecommerce-1.4.0 lib/gateway/CreditCardTransaction/credit_card.rb
mundipagg_sdk-1.4.0 lib/gateway/CreditCardTransaction/credit_card.rb
stone_ecommerce-1.3.0 lib/gateway/CreditCardTransaction/credit_card.rb
stone_ecommerce-1.2.3 lib/gateway/CreditCardTransaction/credit_card.rb