Class: FidorApi::Beneficiary::ACH
- Inherits:
-
Base
- Object
- Connectivity::Resource
- Base
- FidorApi::Beneficiary::ACH
- Includes:
- Generic
- Defined in:
- lib/fidor_api/beneficiary/ach.rb
Defined Under Namespace
Modules: ClientSupport
Constant Summary
Constants inherited from Base
Base::ROUTING_INFO_ERROR_PREFIX
Instance Attribute Summary
Attributes inherited from Base
Attributes inherited from Connectivity::Resource
Instance Method Summary collapse
Methods included from Generic
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
23 24 25 26 27 28 |
# File 'lib/fidor_api/beneficiary/ach.rb', line 23 def as_json_routing_info { account_number: account_number, routing_code: routing_code } end |
#as_json_routing_type ⇒ Object
19 20 21 |
# File 'lib/fidor_api/beneficiary/ach.rb', line 19 def as_json_routing_type "ACH" end |
#set_attributes(attrs = {}) ⇒ Object
13 14 15 16 17 |
# File 'lib/fidor_api/beneficiary/ach.rb', line 13 def set_attributes(attrs = {}) self.account_number = attrs.fetch("routing_info", {})["account_number"] self.routing_code = attrs.fetch("routing_info", {})["routing_code"] super(attrs.except("routing_type", "routing_info")) end |