Class: WorkOS::DsyncGroupUpdatedData

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/directory_sync/dsync_group_updated_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  object: :object,
  id: :id,
  idp_id: :idp_id,
  directory_id: :directory_id,
  organization_id: :organization_id,
  name: :name,
  raw_attributes: :raw_attributes,
  created_at: :created_at,
  updated_at: :updated_at,
  previous_attributes: :previous_attributes
}.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) ⇒ DsyncGroupUpdatedData

Returns a new instance of DsyncGroupUpdatedData.



32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/workos/directory_sync/dsync_group_updated_data.rb', line 32

def initialize(json)
  hash = self.class.normalize(json)
  @object = hash[:object]
  @id = hash[:id]
  @idp_id = hash[:idp_id]
  @directory_id = hash[:directory_id]
  @organization_id = hash[:organization_id]
  @name = hash[:name]
  @raw_attributes = hash[:raw_attributes] || {}
  @created_at = hash[:created_at]
  @updated_at = hash[:updated_at]
  @previous_attributes = hash[:previous_attributes] || {}
end

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



20
21
22
# File 'lib/workos/directory_sync/dsync_group_updated_data.rb', line 20

def created_at
  @created_at
end

#directory_idObject

Returns the value of attribute directory_id.



20
21
22
# File 'lib/workos/directory_sync/dsync_group_updated_data.rb', line 20

def directory_id
  @directory_id
end

#idObject

Returns the value of attribute id.



20
21
22
# File 'lib/workos/directory_sync/dsync_group_updated_data.rb', line 20

def id
  @id
end

#idp_idObject

Returns the value of attribute idp_id.



20
21
22
# File 'lib/workos/directory_sync/dsync_group_updated_data.rb', line 20

def idp_id
  @idp_id
end

#nameObject

Returns the value of attribute name.



20
21
22
# File 'lib/workos/directory_sync/dsync_group_updated_data.rb', line 20

def name
  @name
end

#objectObject

Returns the value of attribute object.



20
21
22
# File 'lib/workos/directory_sync/dsync_group_updated_data.rb', line 20

def object
  @object
end

#organization_idObject

Returns the value of attribute organization_id.



20
21
22
# File 'lib/workos/directory_sync/dsync_group_updated_data.rb', line 20

def organization_id
  @organization_id
end

#previous_attributesObject

Returns the value of attribute previous_attributes.



20
21
22
# File 'lib/workos/directory_sync/dsync_group_updated_data.rb', line 20

def previous_attributes
  @previous_attributes
end

#raw_attributesObject

Returns the value of attribute raw_attributes.



20
21
22
# File 'lib/workos/directory_sync/dsync_group_updated_data.rb', line 20

def raw_attributes
  @raw_attributes
end

#updated_atObject

Returns the value of attribute updated_at.



20
21
22
# File 'lib/workos/directory_sync/dsync_group_updated_data.rb', line 20

def updated_at
  @updated_at
end