Class: WorkOS::DirectoryUserEmail
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::DirectoryUserEmail
- Defined in:
- lib/workos/directory_sync/directory_user_email.rb
Constant Summary collapse
- HASH_ATTRS =
{ primary: :primary, type: :type, value: :value }.freeze
Instance Attribute Summary collapse
-
#primary ⇒ Object
Returns the value of attribute primary.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ DirectoryUserEmail
constructor
A new instance of DirectoryUserEmail.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ DirectoryUserEmail
Returns a new instance of DirectoryUserEmail.
18 19 20 21 22 23 |
# File 'lib/workos/directory_sync/directory_user_email.rb', line 18 def initialize(json) hash = self.class.normalize(json) @primary = hash[:primary] @type = hash[:type] @value = hash[:value] end |
Instance Attribute Details
#primary ⇒ Object
Returns the value of attribute primary.
13 14 15 |
# File 'lib/workos/directory_sync/directory_user_email.rb', line 13 def primary @primary end |
#type ⇒ Object
Returns the value of attribute type.
13 14 15 |
# File 'lib/workos/directory_sync/directory_user_email.rb', line 13 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
13 14 15 |
# File 'lib/workos/directory_sync/directory_user_email.rb', line 13 def value @value end |