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