Class: RockRMS::Response::TransactionDetail

Inherits:
Base
  • Object
show all
Defined in:
lib/rock_rms/response/transaction_detail.rb

Constant Summary collapse

MAP =
{
  fee_amount: 'FeeAmount',
  fee_coverage_amount: 'FeeCoverageAmount',
  fund: 'Account',
  fund_id: 'AccountId',
  amount: 'Amount',
  entity_type_id: 'EntityTypeId',
  entity_id: 'EntityId'
}.freeze

Constants inherited from Base

Base::BASE_MAPPING

Instance Attribute Summary

Attributes inherited from Base

#data

Instance Method Summary collapse

Methods inherited from Base

format, #format, #format_attributes, #initialize, #to_h

Constructor Details

This class inherits a constructor from RockRMS::Response::Base

Instance Method Details

#format_single(response) ⇒ Object



14
15
16
17
18
# File 'lib/rock_rms/response/transaction_detail.rb', line 14

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