Class: Clerk::Models::Components::EmailLink

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(status:, strategy:, object: nil, attempts: nil, expire_at: nil, verified_at_client: nil) ⇒ EmailLink

Returns a new instance of EmailLink.



29
30
31
32
33
34
35
36
# File 'lib/clerk/models/components/emaillink.rb', line 29

def initialize(status:, strategy:, object: nil, attempts: nil, expire_at: nil, verified_at_client: nil)
  @status = status
  @strategy = strategy
  @object = object
  @attempts = attempts
  @expire_at = expire_at
  @verified_at_client = verified_at_client
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/clerk/models/components/emaillink.rb', line 39

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 @object == other.object
  return false unless @attempts == other.attempts
  return false unless @expire_at == other.expire_at
  return false unless @verified_at_client == other.verified_at_client
  true
end