Sha256: 729eaab8b253b5bcc41cf1b1a530e97b99ebaa02905d10f8c3be57c33a083579

Contents?: true

Size: 210 Bytes

Versions: 5

Compression:

Stored size: 210 Bytes

Contents

# frozen_string_literal: true

module NexioActivemerchant
  Transaction = Struct.new(:data) do
    def status
      data['transactionStatus']
    end

    def amount
      data['amount'].to_d
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nexio_activemerchant-0.4.3 lib/nexio_activemerchant/transaction.rb
nexio_activemerchant-0.4.2 lib/nexio_activemerchant/transaction.rb
nexio_activemerchant-0.4.1 lib/nexio_activemerchant/transaction.rb
nexio_activemerchant-0.4.0 lib/nexio_activemerchant/transaction.rb
nexio_activemerchant-0.3.1 lib/nexio_activemerchant/transaction.rb