Sha256: 3a3b399e195aad8060726a4fc559154dde29f984c03b71d53a228864ba50cc27

Contents?: true

Size: 376 Bytes

Versions: 24

Compression:

Stored size: 376 Bytes

Contents

module RockRMS
  module Response
    class TransactionDetail < Base
      MAP = {
        id: 'Id',
        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

24 entries across 24 versions & 1 rubygems

Version Path
rock_rms-4.15.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.14.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.13.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.12.3 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.12.2 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.12.1 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.11.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.10.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.9.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.8.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.7.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.6.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.5.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.4.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.3.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.2.3 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.2.2 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.2.1 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.2.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-4.1.1 lib/rock_rms/response/transaction_detail.rb