Class: WorkOS::AuthenticationEmailVerificationFailedDataError

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/user_management/authentication_email_verification_failed_data_error.rb

Constant Summary collapse

HASH_ATTRS =
{
  code: :code,
  message: :message,
  radar_detection_id: :radar_detection_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ AuthenticationEmailVerificationFailedDataError

Returns a new instance of AuthenticationEmailVerificationFailedDataError.



18
19
20
21
22
23
# File 'lib/workos/user_management/authentication_email_verification_failed_data_error.rb', line 18

def initialize(json)
  hash = self.class.normalize(json)
  @code = hash[:code]
  @message = hash[:message]
  @radar_detection_id = hash[:radar_detection_id]
end

Instance Attribute Details

#code ⇒ Object

Returns the value of attribute code.



13
14
15
# File 'lib/workos/user_management/authentication_email_verification_failed_data_error.rb', line 13

def code
  @code
end

#message ⇒ Object

Returns the value of attribute message.



13
14
15
# File 'lib/workos/user_management/authentication_email_verification_failed_data_error.rb', line 13

def message
  @message
end

#radar_detection_id ⇒ Object

Returns the value of attribute radar_detection_id.



13
14
15
# File 'lib/workos/user_management/authentication_email_verification_failed_data_error.rb', line 13

def radar_detection_id
  @radar_detection_id
end