Sha256: e21e62511d9b09915bba43f1b0593e55ba1d0adf521ccb5133b427018dba9bf2
Contents?: true
Size: 611 Bytes
Versions: 9
Compression:
Stored size: 611 Bytes
Contents
class CreditCardTransaction attr_accessor :CreditCard attr_accessor :Options attr_accessor :Recurrency attr_accessor :AmountInCents attr_accessor :InstallmentCount attr_accessor :CreditCardOperation attr_accessor :TransactionReference attr_accessor :TransactionDateInMerchant def initialize @Options = CreditCardTransactionOptions.new @Recurrency = Recurrency.new @CreditCard = CreditCard.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
9 entries across 9 versions & 2 rubygems