Class: WorkOS::CreateOrganizationDomain
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::CreateOrganizationDomain
- 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
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateOrganizationDomain
constructor
A new instance of CreateOrganizationDomain.
Methods inherited from Types::BaseModel
Methods included from HashProvider
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
#domain ⇒ Object
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_id ⇒ Object
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 |