Method: Scimitar::Resources::Base#complex_type_from_hash

Defined in:
app/models/scimitar/resources/base.rb

#complex_type_from_hash(scim_attribute, attr_value) ⇒ Object



149
150
151
152
153
154
155
# File 'app/models/scimitar/resources/base.rb', line 149

def complex_type_from_hash(scim_attribute, attr_value)
  if attr_value.is_a?(Hash)
    scim_attribute.complexType.new(attr_value)
  else
    attr_value
  end
end