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
}.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) ⇒ AuthenticationEmailVerificationFailedDataError

Returns a new instance of AuthenticationEmailVerificationFailedDataError.



16
17
18
19
20
# File 'lib/workos/user_management/authentication_email_verification_failed_data_error.rb', line 16

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

Instance Attribute Details

#codeObject

Returns the value of attribute code.



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

def code
  @code
end

#messageObject

Returns the value of attribute message.



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

def message
  @message
end