Class: FidorApi::Transfer::Internal
- Inherits:
-
Base
- Object
- Connectivity::Resource
- Base
- FidorApi::Transfer::Internal
- Extended by:
- AmountAttributes, ModelAttribute
- Defined in:
- lib/fidor_api/transfer/internal.rb
Defined Under Namespace
Modules: ClientSupport
Instance Attribute Summary
Attributes inherited from Base
Attributes inherited from Connectivity::Resource
Class Method Summary collapse
Instance Method Summary collapse
Methods included from AmountAttributes
amount_attribute, attributes, extended
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
Class Method Details
.required_attributes ⇒ Object
22 23 24 |
# File 'lib/fidor_api/transfer/internal.rb', line 22 def self.required_attributes [ :account_id, :receiver, :external_uid, :amount, :subject ] end |
.writeable_attributes ⇒ Object
26 27 28 |
# File 'lib/fidor_api/transfer/internal.rb', line 26 def self.writeable_attributes required_attributes end |
Instance Method Details
#as_json ⇒ Object
32 33 34 |
# File 'lib/fidor_api/transfer/internal.rb', line 32 def as_json attributes.slice *self.class.writeable_attributes end |