Class: WorkOS::AuditLogEventActor
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AuditLogEventActor
- Defined in:
- lib/workos/audit_logs/audit_log_event_actor.rb
Constant Summary collapse
- HASH_ATTRS =
{ id: :id, type: :type, name: :name, metadata: :metadata }.freeze
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ AuditLogEventActor
constructor
A new instance of AuditLogEventActor.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ AuditLogEventActor
Returns a new instance of AuditLogEventActor.
20 21 22 23 24 25 26 |
# File 'lib/workos/audit_logs/audit_log_event_actor.rb', line 20 def initialize(json) hash = self.class.normalize(json) @id = hash[:id] @type = hash[:type] @name = hash[:name] @metadata = hash[:metadata] || {} end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
14 15 16 |
# File 'lib/workos/audit_logs/audit_log_event_actor.rb', line 14 def id @id end |
#metadata ⇒ Object
Returns the value of attribute metadata.
14 15 16 |
# File 'lib/workos/audit_logs/audit_log_event_actor.rb', line 14 def @metadata end |
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/workos/audit_logs/audit_log_event_actor.rb', line 14 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
14 15 16 |
# File 'lib/workos/audit_logs/audit_log_event_actor.rb', line 14 def type @type end |