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