Class: Pesepay::Transaction
- Inherits:
-
Object
- Object
- Pesepay::Transaction
- Defined in:
- lib/pesepay.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#currency_code ⇒ Object
Returns the value of attribute currency_code.
-
#reason_for_payment ⇒ Object
Returns the value of attribute reason_for_payment.
-
#reference ⇒ Object
Returns the value of attribute reference.
Instance Method Summary collapse
-
#initialize(amount, currency_code, reason_for_payment, reference) ⇒ Transaction
constructor
A new instance of Transaction.
Constructor Details
#initialize(amount, currency_code, reason_for_payment, reference) ⇒ Transaction
Returns a new instance of Transaction.
247 248 249 250 251 252 |
# File 'lib/pesepay.rb', line 247 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
#amount ⇒ Object
Returns the value of attribute amount.
245 246 247 |
# File 'lib/pesepay.rb', line 245 def amount @amount end |
#currency_code ⇒ Object
Returns the value of attribute currency_code.
245 246 247 |
# File 'lib/pesepay.rb', line 245 def currency_code @currency_code end |
#reason_for_payment ⇒ Object
Returns the value of attribute reason_for_payment.
245 246 247 |
# File 'lib/pesepay.rb', line 245 def reason_for_payment @reason_for_payment end |
#reference ⇒ Object
Returns the value of attribute reference.
245 246 247 |
# File 'lib/pesepay.rb', line 245 def reference @reference end |