Class: WorkOS::DirectorySyncResponse

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/directory_sync/directory_sync_response.rb

Constant Summary collapse

HASH_ATTRS =
{
  status: :status
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DirectorySyncResponse

Returns a new instance of DirectorySyncResponse.



13
14
15
16
# File 'lib/workos/directory_sync/directory_sync_response.rb', line 13

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

Instance Attribute Details

#status ⇒ Object

Returns the value of attribute status.



11
12
13
# File 'lib/workos/directory_sync/directory_sync_response.rb', line 11

def status
  @status
end