Method: Scimitar::Schema::Attribute#simple_type?

Defined in:
app/models/scimitar/schema/attribute.rb

#simple_type?(value) ⇒ Boolean

Returns:

  • (Boolean)


106
107
108
109
110
111
# File 'app/models/scimitar/schema/attribute.rb', line 106

def simple_type?(value)
  (type == 'string' && value.is_a?(String)) ||
  (type == 'boolean' && (value.is_a?(TrueClass) || value.is_a?(FalseClass))) ||
  (type == 'integer' && (value.is_a?(Integer))) ||
  (type == 'dateTime' && valid_date_time?(value))
end