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