Class: WorkOS::AuditLogEventCreateResponse

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/audit_logs/audit_log_event_create_response.rb

Constant Summary collapse

HASH_ATTRS =
{
  success: :success
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

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

#successObject

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