Class: Payments::Transaction

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

Defined Under Namespace

Classes: Payment

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options={})
  @order_id = get_arg(options, 'order_id')
  @txn_id = get_arg(options, 'txn_id')
  @status = get_arg(options, 'status')
  @payment = Payment.new(get_arg(options, 'payment'))
end

Instance Attribute Details

#order_idObject (readonly)

Returns the value of attribute order_id.



7
8
9
# File 'lib/Payments.rb', line 7

def order_id
  @order_id
end

#paymentObject (readonly)

Returns the value of attribute payment.



7
8
9
# File 'lib/Payments.rb', line 7

def payment
  @payment
end

#statusObject (readonly)

Returns the value of attribute status.



7
8
9
# File 'lib/Payments.rb', line 7

def status
  @status
end

#txn_idObject (readonly)

Returns the value of attribute txn_id.



7
8
9
# File 'lib/Payments.rb', line 7

def txn_id
  @txn_id
end