Class: WorkOS::OrganizationCreatedDataDomain

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/organizations/organization_created_data_domain.rb

Constant Summary collapse

HASH_ATTRS =
{
  object: :object,
  id: :id,
  organization_id: :organization_id,
  domain: :domain,
  state: :state,
  verification_prefix: :verification_prefix,
  verification_token: :verification_token,
  verification_strategy: :verification_strategy,
  created_at: :created_at,
  updated_at: :updated_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) ⇒ OrganizationCreatedDataDomain

Returns a new instance of OrganizationCreatedDataDomain.



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

def initialize(json)
  hash = self.class.normalize(json)
  @object = hash[:object]
  @id = hash[:id]
  @organization_id = hash[:organization_id]
  @domain = hash[:domain]
  @state = hash[:state]
  @verification_prefix = hash[:verification_prefix]
  @verification_token = hash[:verification_token]
  @verification_strategy = hash[:verification_strategy]
  @created_at = hash[:created_at]
  @updated_at = hash[:updated_at]
end

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



20
21
22
# File 'lib/workos/organizations/organization_created_data_domain.rb', line 20

def created_at
  @created_at
end

#domainObject

Returns the value of attribute domain.



20
21
22
# File 'lib/workos/organizations/organization_created_data_domain.rb', line 20

def domain
  @domain
end

#idObject

Returns the value of attribute id.



20
21
22
# File 'lib/workos/organizations/organization_created_data_domain.rb', line 20

def id
  @id
end

#objectObject

Returns the value of attribute object.



20
21
22
# File 'lib/workos/organizations/organization_created_data_domain.rb', line 20

def object
  @object
end

#organization_idObject

Returns the value of attribute organization_id.



20
21
22
# File 'lib/workos/organizations/organization_created_data_domain.rb', line 20

def organization_id
  @organization_id
end

#stateObject

Returns the value of attribute state.



20
21
22
# File 'lib/workos/organizations/organization_created_data_domain.rb', line 20

def state
  @state
end

#updated_atObject

Returns the value of attribute updated_at.



20
21
22
# File 'lib/workos/organizations/organization_created_data_domain.rb', line 20

def updated_at
  @updated_at
end

#verification_prefixObject

Returns the value of attribute verification_prefix.



20
21
22
# File 'lib/workos/organizations/organization_created_data_domain.rb', line 20

def verification_prefix
  @verification_prefix
end

#verification_strategyObject

Returns the value of attribute verification_strategy.



20
21
22
# File 'lib/workos/organizations/organization_created_data_domain.rb', line 20

def verification_strategy
  @verification_strategy
end

#verification_tokenObject

Returns the value of attribute verification_token.



20
21
22
# File 'lib/workos/organizations/organization_created_data_domain.rb', line 20

def verification_token
  @verification_token
end