class FidorApi::Model::StandingOrder

Public Instance Methods

beneficiary=(value) click to toggle source
# File lib/fidor_api/model/standing_order.rb, line 20
def beneficiary=(value)
  write_attribute(:beneficiary, value)
  define_methods_for(SUPPORTED_ROUTING_TYPES[beneficiary['routing_type']])
end
routing_type() click to toggle source
# File lib/fidor_api/model/standing_order.rb, line 25
def routing_type
  @beneficiary ||= {}
  @beneficiary.dig('routing_type')
end
routing_type=(type) click to toggle source
# File lib/fidor_api/model/standing_order.rb, line 30
def routing_type=(type)
  raise Errors::NotSupported unless SUPPORTED_ROUTING_TYPES.key?(type)

  @beneficiary ||= {}
  @beneficiary['routing_type'] = type
  define_methods_for(SUPPORTED_ROUTING_TYPES[type])
end