Class: WorkOS::DirectoryMetadataUser

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

Constant Summary collapse

HASH_ATTRS =
{
  active: :active,
  inactive: :inactive
}.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) ⇒ DirectoryMetadataUser

Returns a new instance of DirectoryMetadataUser.



16
17
18
19
20
# File 'lib/workos/directory_sync/directory_metadata_user.rb', line 16

def initialize(json)
  hash = self.class.normalize(json)
  @active = hash[:active]
  @inactive = hash[:inactive]
end

Instance Attribute Details

#activeObject

Returns the value of attribute active.



12
13
14
# File 'lib/workos/directory_sync/directory_metadata_user.rb', line 12

def active
  @active
end

#inactiveObject

Returns the value of attribute inactive.



12
13
14
# File 'lib/workos/directory_sync/directory_metadata_user.rb', line 12

def inactive
  @inactive
end