Class: WorkOS::DsyncTokenCreatedData

Inherits:
Types::BaseModel show all
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

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

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_atObject

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_idObject

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

#idObject

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

#objectObject

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_idObject

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_suffixObject

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