Class: WorkOS::DsyncTokenCreatedData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::DsyncTokenCreatedData
- Defined in:
- lib/workos/directory_sync/dsync_token_created_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ object: :object, id: :id, directory_id: :directory_id, organization_id: :organization_id, token_suffix: :token_suffix, created_at: :created_at }.freeze
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#directory_id ⇒ Object
Returns the value of attribute directory_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#object ⇒ Object
Returns the value of attribute object.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#token_suffix ⇒ Object
Returns the value of attribute token_suffix.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ DsyncTokenCreatedData
constructor
A new instance of DsyncTokenCreatedData.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ DsyncTokenCreatedData
Returns a new instance of DsyncTokenCreatedData.
24 25 26 27 28 29 30 31 32 |
# File 'lib/workos/directory_sync/dsync_token_created_data.rb', line 24 def initialize(json) hash = self.class.normalize(json) @object = hash[:object] @id = hash[:id] @directory_id = hash[:directory_id] @organization_id = hash[:organization_id] @token_suffix = hash[:token_suffix] @created_at = hash[:created_at] end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
16 17 18 |
# File 'lib/workos/directory_sync/dsync_token_created_data.rb', line 16 def created_at @created_at end |
#directory_id ⇒ Object
Returns the value of attribute directory_id.
16 17 18 |
# File 'lib/workos/directory_sync/dsync_token_created_data.rb', line 16 def directory_id @directory_id end |
#id ⇒ Object
Returns the value of attribute id.
16 17 18 |
# File 'lib/workos/directory_sync/dsync_token_created_data.rb', line 16 def id @id end |
#object ⇒ Object
Returns the value of attribute object.
16 17 18 |
# File 'lib/workos/directory_sync/dsync_token_created_data.rb', line 16 def object @object end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
16 17 18 |
# File 'lib/workos/directory_sync/dsync_token_created_data.rb', line 16 def organization_id @organization_id end |
#token_suffix ⇒ Object
Returns the value of attribute token_suffix.
16 17 18 |
# File 'lib/workos/directory_sync/dsync_token_created_data.rb', line 16 def token_suffix @token_suffix end |