Class: NexioActivemerchant::Transaction

Inherits:
Struct
  • Object
show all
Defined in:
lib/nexio_activemerchant/transaction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



4
5
6
# File 'lib/nexio_activemerchant/transaction.rb', line 4

def data
  @data
end

Instance Method Details

#amountObject



9
10
11
# File 'lib/nexio_activemerchant/transaction.rb', line 9

def amount
  data['amount'].to_d
end

#statusObject



5
6
7
# File 'lib/nexio_activemerchant/transaction.rb', line 5

def status
  data['transactionStatus']
end