Class: WorkOS::FlagRuleUpdatedContextPreviousAttributeData

Inherits:
Types::BaseModel show all
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

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

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_valueObject

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

#enabledObject

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