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