Sha256: ea203fb305a209e94cef1835a15c7f03558e0d12b2d5bfd57925f33c7ef97f16

Contents?: true

Size: 309 Bytes

Versions: 3

Compression:

Stored size: 309 Bytes

Contents

module Laundry
  module PaymentsGateway

    class Transaction < ResponseModel

      def initialize_with_response(response)
        self.record = response[:get_transaction_response][:get_transaction_result]
      end

      def status
        record[:response][:status].downcase
      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
laundry-0.0.8 lib/laundry/payments_gateway/models/transaction.rb
laundry-0.0.7 lib/laundry/payments_gateway/models/transaction.rb
laundry-0.0.6 lib/laundry/payments_gateway/models/transaction.rb