Class: WorkOS::UpdateOrganization
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::UpdateOrganization
- Defined in:
- lib/workos/organizations/update_organization.rb
Constant Summary collapse
- HASH_ATTRS =
{ name: :name, allow_profiles_outside_organization: :allow_profiles_outside_organization, domains: :domains, domain_data: :domain_data, stripe_customer_id: :stripe_customer_id, 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
deprecated
Deprecated.
The domains associated with the organization. Deprecated in favor of ‘domain_data`.
-
#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.
-
#stripe_customer_id ⇒ Object
Returns the value of attribute stripe_customer_id.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ UpdateOrganization
constructor
A new instance of UpdateOrganization.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ UpdateOrganization
Returns a new instance of UpdateOrganization.
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/workos/organizations/update_organization.rb', line 35 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 } @stripe_customer_id = hash[:stripe_customer_id] @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.
20 21 22 |
# File 'lib/workos/organizations/update_organization.rb', line 20 def allow_profiles_outside_organization @allow_profiles_outside_organization end |
#domain_data ⇒ Object
Returns the value of attribute domain_data.
20 21 22 |
# File 'lib/workos/organizations/update_organization.rb', line 20 def domain_data @domain_data end |
#domains ⇒ Object
The domains associated with the organization. Deprecated in favor of ‘domain_data`.
20 21 22 23 24 25 26 |
# File 'lib/workos/organizations/update_organization.rb', line 20 attr_accessor \ :name, :allow_profiles_outside_organization, :domain_data, :stripe_customer_id, :metadata, :external_id |
#external_id ⇒ Object
Returns the value of attribute external_id.
20 21 22 |
# File 'lib/workos/organizations/update_organization.rb', line 20 def external_id @external_id end |
#metadata ⇒ Object
Returns the value of attribute metadata.
20 21 22 |
# File 'lib/workos/organizations/update_organization.rb', line 20 def @metadata end |
#name ⇒ Object
Returns the value of attribute name.
20 21 22 |
# File 'lib/workos/organizations/update_organization.rb', line 20 def name @name end |
#stripe_customer_id ⇒ Object
Returns the value of attribute stripe_customer_id.
20 21 22 |
# File 'lib/workos/organizations/update_organization.rb', line 20 def stripe_customer_id @stripe_customer_id end |