Sha256: 71c37246db3438854d7e8e26b0d9140f9465801696c47655563f838760a084ae

Contents?: true

Size: 502 Bytes

Versions: 3

Compression:

Stored size: 502 Bytes

Contents

class CreditCard

  attr_accessor :InstantBuyerKey

  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

3 entries across 3 versions & 1 rubygems

Version Path
mundipagg_api-1.1.0 lib/mundipagg/CreditCardTransaction/credit_card.rb
mundipagg_api-1.0.1 lib/mundipagg/CreditCardTransaction/credit_card.rb
mundipagg_api-1.0.0 lib/mundipagg/CreditCardTransaction/credit_card.rb