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.
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
#amount ⇒ Object
Returns the value of attribute amount.
241 242 243 |
# File 'lib/pesepay.rb', line 241 def amount @amount end |
#currency_code ⇒ Object
Returns the value of attribute currency_code.
241 242 243 |
# File 'lib/pesepay.rb', line 241 def currency_code @currency_code end |
#reason_for_payment ⇒ Object
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 |
#reference ⇒ Object
Returns the value of attribute reference.
241 242 243 |
# File 'lib/pesepay.rb', line 241 def reference @reference end |