Class: ScimEngine::ComplexTypes::Email

Inherits:
Base
  • Object
show all
Defined in:
app/models/scim_engine/complex_types/email.rb

Overview

Represents the complex email type.

See Also:

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Errors

#add_errors_from_hash

Constructor Details

This class inherits a constructor from ScimEngine::ComplexTypes::Base

Instance Method Details

#as_json(options = {}) ⇒ Object

Returns the json representation of an email.



9
10
11
# File 'app/models/scim_engine/complex_types/email.rb', line 9

def as_json(options = {})
  {'type' => 'work', 'primary' => true}.merge(super(options))
end