Class: Clerk::Models::Operations::VerifyTOTPResponseBody

Inherits:
Object
  • Object
show all
Includes:
Crystalline::MetadataFields
Defined in:
lib/clerk/models/operations/verifytotp_responsebody.rb

Overview

The provided TOTP or backup code was correct.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(verified: nil, code_type: nil) ⇒ VerifyTOTPResponseBody

Returns a new instance of VerifyTOTPResponseBody.



21
22
23
24
# File 'lib/clerk/models/operations/verifytotp_responsebody.rb', line 21

def initialize(verified: nil, code_type: nil)
  @verified = verified
  @code_type = code_type
end

Instance Method Details

#==(other) ⇒ Object



27
28
29
30
31
32
# File 'lib/clerk/models/operations/verifytotp_responsebody.rb', line 27

def ==(other)
  return false unless other.is_a? self.class
  return false unless @verified == other.verified
  return false unless @code_type == other.code_type
  true
end