Class: WorkOS::ConnectionActivatedDataDomain

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/sso/connection_activated_data_domain.rb

Constant Summary collapse

HASH_ATTRS =
{
  object: :object,
  id: :id,
  domain: :domain
}.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) ⇒ ConnectionActivatedDataDomain

Returns a new instance of ConnectionActivatedDataDomain.



18
19
20
21
22
23
# File 'lib/workos/sso/connection_activated_data_domain.rb', line 18

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

Instance Attribute Details

#domainObject

Returns the value of attribute domain.



13
14
15
# File 'lib/workos/sso/connection_activated_data_domain.rb', line 13

def domain
  @domain
end

#idObject

Returns the value of attribute id.



13
14
15
# File 'lib/workos/sso/connection_activated_data_domain.rb', line 13

def id
  @id
end

#objectObject

Returns the value of attribute object.



13
14
15
# File 'lib/workos/sso/connection_activated_data_domain.rb', line 13

def object
  @object
end