Class: FidorApi::Transfer::BankInternal
- Inherits:
-
Base
- Object
- Connectivity::Resource
- Base
- FidorApi::Transfer::BankInternal
- Includes:
- Generic
- Defined in:
- lib/fidor_api/transfer/bank_internal.rb
Constant Summary
Constants included from Generic
Generic::ROUTING_INFO_ERROR_PREFIX
Instance Attribute Summary
Attributes inherited from Base
Attributes inherited from Connectivity::Resource
Instance Method Summary collapse
Methods included from Generic
#as_json, included, required_attributes
Methods inherited from Base
Methods inherited from Connectivity::Resource
all, find, #initialize, model_name, #persisted?, #reload, #save, #update_attributes
Constructor Details
This class inherits a constructor from FidorApi::Connectivity::Resource
Instance Method Details
#as_json_routing_info ⇒ Object
18 19 20 21 22 |
# File 'lib/fidor_api/transfer/bank_internal.rb', line 18 def as_json_routing_info { account_number: account_number } end |
#as_json_routing_type ⇒ Object
14 15 16 |
# File 'lib/fidor_api/transfer/bank_internal.rb', line 14 def as_json_routing_type 'BANK_INTERNAL' end |
#set_attributes(attrs = {}) ⇒ Object
9 10 11 12 |
# File 'lib/fidor_api/transfer/bank_internal.rb', line 9 def set_attributes(attrs = {}) self.account_number = attrs.fetch("beneficiary", {}).fetch("routing_info", {})["account_number"] super(attrs) end |