Class: WorkOS::EventContextActor
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::EventContextActor
- Defined in:
- lib/workos/shared/event_context_actor.rb
Constant Summary collapse
- HASH_ATTRS =
{ id: :id, source: :source, name: :name }.freeze
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#source ⇒ Object
Returns the value of attribute source.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ EventContextActor
constructor
A new instance of EventContextActor.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ EventContextActor
Returns a new instance of EventContextActor.
18 19 20 21 22 23 |
# File 'lib/workos/shared/event_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
#id ⇒ Object
Returns the value of attribute id.
13 14 15 |
# File 'lib/workos/shared/event_context_actor.rb', line 13 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
13 14 15 |
# File 'lib/workos/shared/event_context_actor.rb', line 13 def name @name end |
#source ⇒ Object
Returns the value of attribute source.
13 14 15 |
# File 'lib/workos/shared/event_context_actor.rb', line 13 def source @source end |