Class: Pesepay::Transaction

Inherits:
Object
  • Object
show all
Defined in:
lib/pesepay.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(amount, currency_code, reason_for_payment, reference) ⇒ Transaction

Returns a new instance of Transaction.



243
244
245
246
247
248
# File 'lib/pesepay.rb', line 243

def initialize(amount, currency_code, reason_for_payment, reference)
  @amount = amount
  @currency_code = currency_code
  @reason_for_payment = reason_for_payment
  @reference = reference
end

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



241
242
243
# File 'lib/pesepay.rb', line 241

def amount
  @amount
end

#currency_codeObject

Returns the value of attribute currency_code.



241
242
243
# File 'lib/pesepay.rb', line 241

def currency_code
  @currency_code
end

#reason_for_paymentObject

Returns the value of attribute reason_for_payment.



241
242
243
# File 'lib/pesepay.rb', line 241

def reason_for_payment
  @reason_for_payment
end

#referenceObject

Returns the value of attribute reference.



241
242
243
# File 'lib/pesepay.rb', line 241

def reference
  @reference
end