Class: Clerk::Models::Components::AffiliationVerification
- Inherits:
-
Object
- Object
- Clerk::Models::Components::AffiliationVerification
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/affiliation_verification.rb
Overview
Verification details for the user-facing affiliation between the domain and the organization (e.g. affiliation_email_code).
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(status:, strategy:, attempts: nil, expire_at: nil, verified_at: nil) ⇒ AffiliationVerification
constructor
A new instance of AffiliationVerification.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(status:, strategy:, attempts: nil, expire_at: nil, verified_at: nil) ⇒ AffiliationVerification
Returns a new instance of AffiliationVerification.
29 30 31 32 33 34 35 |
# File 'lib/clerk/models/components/affiliation_verification.rb', line 29 def initialize(status:, strategy:, attempts: nil, expire_at: nil, verified_at: nil) @status = status @strategy = strategy @attempts = attempts @expire_at = expire_at @verified_at = verified_at end |
Instance Method Details
#==(other) ⇒ Object
38 39 40 41 42 43 44 45 46 |
# File 'lib/clerk/models/components/affiliation_verification.rb', line 38 def ==(other) return false unless other.is_a? self.class 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 @verified_at == other.verified_at true end |