Class: WorkOS::OrganizationInput
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::OrganizationInput
- Defined in:
- lib/workos/organizations/organization_input.rb
Constant Summary collapse
- HASH_ATTRS =
{ name: :name, allow_profiles_outside_organization: :allow_profiles_outside_organization, domains: :domains, domain_data: :domain_data, metadata: :metadata, external_id: :external_id }.freeze
Instance Attribute Summary collapse
-
#allow_profiles_outside_organization ⇒ Object
Returns the value of attribute allow_profiles_outside_organization.
-
#domain_data ⇒ Object
Returns the value of attribute domain_data.
-
#domains ⇒ Object
Returns the value of attribute domains.
-
#external_id ⇒ Object
Returns the value of attribute external_id.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ OrganizationInput
constructor
A new instance of OrganizationInput.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ OrganizationInput
Returns a new instance of OrganizationInput.
24 25 26 27 28 29 30 31 32 |
# File 'lib/workos/organizations/organization_input.rb', line 24 def initialize(json) hash = self.class.normalize(json) @name = hash[:name] @allow_profiles_outside_organization = hash[:allow_profiles_outside_organization] @domains = hash[:domains] || [] @domain_data = (hash[:domain_data] || []).map { |item| item ? WorkOS::OrganizationDomainData.new(item) : nil } @metadata = hash[:metadata] || {} @external_id = hash[:external_id] end |
Instance Attribute Details
#allow_profiles_outside_organization ⇒ Object
Returns the value of attribute allow_profiles_outside_organization.
16 17 18 |
# File 'lib/workos/organizations/organization_input.rb', line 16 def allow_profiles_outside_organization @allow_profiles_outside_organization end |
#domain_data ⇒ Object
Returns the value of attribute domain_data.
16 17 18 |
# File 'lib/workos/organizations/organization_input.rb', line 16 def domain_data @domain_data end |
#domains ⇒ Object
Returns the value of attribute domains.
16 17 18 |
# File 'lib/workos/organizations/organization_input.rb', line 16 def domains @domains end |
#external_id ⇒ Object
Returns the value of attribute external_id.
16 17 18 |
# File 'lib/workos/organizations/organization_input.rb', line 16 def external_id @external_id end |
#metadata ⇒ Object
Returns the value of attribute metadata.
16 17 18 |
# File 'lib/workos/organizations/organization_input.rb', line 16 def @metadata end |
#name ⇒ Object
Returns the value of attribute name.
16 17 18 |
# File 'lib/workos/organizations/organization_input.rb', line 16 def name @name end |