Class: WorkOS::CreateOrganizationDomain

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/organization_domains/create_organization_domain.rb

Constant Summary collapse

HASH_ATTRS =
{
  domain: :domain,
  organization_id: :organization_id
}.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) ⇒ CreateOrganizationDomain

Returns a new instance of CreateOrganizationDomain.



16
17
18
19
20
# File 'lib/workos/organization_domains/create_organization_domain.rb', line 16

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

Instance Attribute Details

#domainObject

Returns the value of attribute domain.



12
13
14
# File 'lib/workos/organization_domains/create_organization_domain.rb', line 12

def domain
  @domain
end

#organization_idObject

Returns the value of attribute organization_id.



12
13
14
# File 'lib/workos/organization_domains/create_organization_domain.rb', line 12

def organization_id
  @organization_id
end