Class: Clerk::Models::Components::VerificationResponse
- Inherits:
-
Object
- Object
- Clerk::Models::Components::VerificationResponse
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/_verificationresponse.rb
Overview
The verification. After prepare_verification it is pending (unverified); after attempt_verification its status reflects the attempt outcome.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object: nil, id: nil, status: nil, strategy: nil, attempts: nil, expire_at: nil, channel: nil) ⇒ VerificationResponse
constructor
A new instance of VerificationResponse.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object: nil, id: nil, status: nil, strategy: nil, attempts: nil, expire_at: nil, channel: nil) ⇒ VerificationResponse
Returns a new instance of VerificationResponse.
32 33 34 35 36 37 38 39 40 |
# File 'lib/clerk/models/components/_verificationresponse.rb', line 32 def initialize(object: nil, id: nil, status: nil, strategy: nil, attempts: nil, expire_at: nil, channel: nil) @object = object @id = id @status = status @strategy = strategy @attempts = attempts @expire_at = expire_at @channel = channel end |
Instance Method Details
#==(other) ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/clerk/models/components/_verificationresponse.rb', line 43 def ==(other) return false unless other.is_a? self.class return false unless @object == other.object return false unless @id == other.id return false unless @status == other.status return false unless @strategy == other.strategy return false unless @attempts == other.attempts return false unless @expire_at == other.expire_at return false unless @channel == other.channel true end |