Sha256: b64edd01e26bbcc956075873800d996b7607281237f04199090634e331091190

Contents?: true

Size: 409 Bytes

Versions: 14

Compression:

Stored size: 409 Bytes

Contents

module RockRMS
  module Response
    class TransactionDetail < Base
      MAP = {
        id: 'Id',
        fee_amount: 'FeeAmount',
        fund: 'Account',
        fund_id: 'AccountId',
        amount: 'Amount'
      }.freeze

      def format_single(response)
        response        = to_h(MAP, response)
        response[:fund] = Fund.format(response[:fund])
        response
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rock_rms-5.8.1 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.8.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.7.1 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.7.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.6.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.5.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.4.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.3.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.2.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.1.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.0.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.18.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.17.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.16.0 lib/rock_rms/response/transaction_detail.rb