Class: WorkOS::FeatureFlagsFlagTargetCreatedContext

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

Constant Summary collapse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FeatureFlagsFlagTargetCreatedContext

Returns a new instance of FeatureFlagsFlagTargetCreatedContext.



16
17
18
19
20
# File 'lib/workos/shared/feature_flags_flag_target_created_context.rb', line 16

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

Instance Attribute Details

#actor ⇒ Object

Returns the value of attribute actor.



12
13
14
# File 'lib/workos/shared/feature_flags_flag_target_created_context.rb', line 12

def actor
  @actor
end

#client_id ⇒ Object

Returns the value of attribute client_id.



12
13
14
# File 'lib/workos/shared/feature_flags_flag_target_created_context.rb', line 12

def client_id
  @client_id
end