Class: Payments::Transaction
- Inherits:
-
Object
- Object
- Payments::Transaction
- Defined in:
- lib/Payments.rb
Defined Under Namespace
Classes: Payment
Instance Attribute Summary collapse
-
#order_id ⇒ Object
readonly
Returns the value of attribute order_id.
-
#payment ⇒ Object
readonly
Returns the value of attribute payment.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#txn_id ⇒ Object
readonly
Returns the value of attribute txn_id.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Transaction
constructor
A new instance of Transaction.
Constructor Details
#initialize(options = {}) ⇒ Transaction
Returns a new instance of Transaction.
25 26 27 28 29 30 |
# File 'lib/Payments.rb', line 25 def initialize(={}) @order_id = get_arg(, 'order_id') @txn_id = get_arg(, 'txn_id') @status = get_arg(, 'status') @payment = Payment.new(get_arg(, 'payment')) end |
Instance Attribute Details
#order_id ⇒ Object (readonly)
Returns the value of attribute order_id.
7 8 9 |
# File 'lib/Payments.rb', line 7 def order_id @order_id end |
#payment ⇒ Object (readonly)
Returns the value of attribute payment.
7 8 9 |
# File 'lib/Payments.rb', line 7 def payment @payment end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/Payments.rb', line 7 def status @status end |
#txn_id ⇒ Object (readonly)
Returns the value of attribute txn_id.
7 8 9 |
# File 'lib/Payments.rb', line 7 def txn_id @txn_id end |