Class: WorkOS::FeatureFlagsFlagRuleUpdatedContext

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/shared/feature_flags_flag_rule_updated_context.rb

Constant Summary collapse

HASH_ATTRS =
{
  client_id: :client_id,
  actor: :actor,
  previous_attributes: :previous_attributes
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FeatureFlagsFlagRuleUpdatedContext

Returns a new instance of FeatureFlagsFlagRuleUpdatedContext.



18
19
20
21
22
23
# File 'lib/workos/shared/feature_flags_flag_rule_updated_context.rb', line 18

def initialize(json)
  hash = self.class.normalize(json)
  @client_id = hash[:client_id]
  @actor = hash[:actor] ? WorkOS::FeatureFlagsFlagRuleUpdatedContextActor.new(hash[:actor]) : nil
  @previous_attributes = hash[:previous_attributes] ? WorkOS::FeatureFlagsFlagRuleUpdatedContextPreviousAttribute.new(hash[:previous_attributes]) : nil
end

Instance Attribute Details

#actor ⇒ Object

Returns the value of attribute actor.



13
14
15
# File 'lib/workos/shared/feature_flags_flag_rule_updated_context.rb', line 13

def actor
  @actor
end

#client_id ⇒ Object

Returns the value of attribute client_id.



13
14
15
# File 'lib/workos/shared/feature_flags_flag_rule_updated_context.rb', line 13

def client_id
  @client_id
end

#previous_attributes ⇒ Object

Returns the value of attribute previous_attributes.



13
14
15
# File 'lib/workos/shared/feature_flags_flag_rule_updated_context.rb', line 13

def previous_attributes
  @previous_attributes
end