Sha256: dd21b8669984e8ca0536d396bdd0a2d91f7609f9586dac0e508dc0b174125112

Contents?: true

Size: 500 Bytes

Versions: 6

Compression:

Stored size: 500 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
mundipagg_sdk-1.0.2 lib/gateway/CreditCardTransaction/credit_card.rb
mundipagg_sdk-1.0.1 lib/gateway/CreditCardTransaction/credit_card.rb
mundipagg_sdk-1.0.0 lib/gateway/CreditCardTransaction/credit_card.rb
mundipagg_api-1.3.1 lib/mundipagg/CreditCardTransaction/credit_card.rb
mundipagg_api-1.3.0 lib/mundipagg/CreditCardTransaction/credit_card.rb
mundipagg_api-1.1.1 lib/mundipagg/CreditCardTransaction/credit_card.rb