Class: WorkOS::FlagRuleUpdatedContextConfiguredTarget
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::FlagRuleUpdatedContextConfiguredTarget
- Defined in:
- lib/workos/feature_flags/flag_rule_updated_context_configured_target.rb
Constant Summary collapse
- HASH_ATTRS =
{ organizations: :organizations, users: :users }.freeze
Instance Attribute Summary collapse
-
#organizations ⇒ Object
Returns the value of attribute organizations.
-
#users ⇒ Object
Returns the value of attribute users.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ FlagRuleUpdatedContextConfiguredTarget
constructor
A new instance of FlagRuleUpdatedContextConfiguredTarget.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ FlagRuleUpdatedContextConfiguredTarget
Returns a new instance of FlagRuleUpdatedContextConfiguredTarget.
16 17 18 19 20 |
# File 'lib/workos/feature_flags/flag_rule_updated_context_configured_target.rb', line 16 def initialize(json) hash = self.class.normalize(json) @organizations = (hash[:organizations] || []).map { |item| item ? WorkOS::FlagRuleUpdatedContextConfiguredTargetOrganization.new(item) : nil } @users = (hash[:users] || []).map { |item| item ? WorkOS::FlagRuleUpdatedContextConfiguredTargetUser.new(item) : nil } end |
Instance Attribute Details
#organizations ⇒ Object
Returns the value of attribute organizations.
12 13 14 |
# File 'lib/workos/feature_flags/flag_rule_updated_context_configured_target.rb', line 12 def organizations @organizations end |
#users ⇒ Object
Returns the value of attribute users.
12 13 14 |
# File 'lib/workos/feature_flags/flag_rule_updated_context_configured_target.rb', line 12 def users @users end |