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