Sha256: 82fc34f02cd603dd98f4e6f4f897f91a8a1415340daad066a4e452c0db5114f8
Contents?: true
Size: 471 Bytes
Versions: 4
Compression:
Stored size: 471 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
4 entries across 4 versions & 2 rubygems