Class: WorkOS::FlagRuleUpdatedContextActor

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/feature_flags/flag_rule_updated_context_actor.rb

Constant Summary collapse

HASH_ATTRS =
{
  id: :id,
  source: :source,
  name: :name
}.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) ⇒ FlagRuleUpdatedContextActor

Returns a new instance of FlagRuleUpdatedContextActor.



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

def initialize(json)
  hash = self.class.normalize(json)
  @id = hash[:id]
  @source = hash[:source]
  @name = hash[:name]
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



13
14
15
# File 'lib/workos/feature_flags/flag_rule_updated_context_actor.rb', line 13

def id
  @id
end

#nameObject

Returns the value of attribute name.



13
14
15
# File 'lib/workos/feature_flags/flag_rule_updated_context_actor.rb', line 13

def name
  @name
end

#sourceObject

Returns the value of attribute source.



13
14
15
# File 'lib/workos/feature_flags/flag_rule_updated_context_actor.rb', line 13

def source
  @source
end