Class: FidorApi::Beneficiary::P2pUsername
- Inherits:
-
Base
- Object
- Connectivity::Resource
- Base
- FidorApi::Beneficiary::P2pUsername
- Includes:
- Generic
- Defined in:
- lib/fidor_api/beneficiary/p2p_username.rb
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
#set_attributes(attrs = {}) ⇒ Object
8 9 10 11 |
# File 'lib/fidor_api/beneficiary/p2p_username.rb', line 8 def set_attributes(attrs = {}) self.username = attrs.fetch("routing_info", {})["username"] super(attrs.except("routing_type", "routing_info")) end |