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