Class: FidorApi::Model::Transfer::Generic
Constant Summary
BeneficiaryHelper::SUPPORTED_ROUTING_TYPES
Instance Attribute Summary
Attributes inherited from Base
#confirmable_action_id
Class Method Summary
collapse
Instance Method Summary
collapse
#define_methods_for, #parse_errors
Methods inherited from Base
#as_json, inherited, #parse_errors
Class Method Details
.resource_name ⇒ Object
20
21
22
|
# File 'lib/fidor_api/model/transfer/generic.rb', line 20
def self.resource_name
'Transfer'
end
|
Instance Method Details
#beneficiary=(value) ⇒ Object
24
25
26
27
|
# File 'lib/fidor_api/model/transfer/generic.rb', line 24
def beneficiary=(value)
write_attribute(:beneficiary, value)
define_methods_for(SUPPORTED_ROUTING_TYPES[beneficiary['routing_type']])
end
|
#routing_type ⇒ Object
29
30
31
32
|
# File 'lib/fidor_api/model/transfer/generic.rb', line 29
def routing_type
@beneficiary ||= {}
@beneficiary.dig('routing_type')
end
|
#routing_type=(type) ⇒ Object