Class: Clerk::Models::Components::EmailAddress

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

Overview

Success

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(object:, email_address:, reserved:, linked_to:, created_at:, updated_at:, id: nil, verification: nil, matches_sso_connection: nil) ⇒ EmailAddress

Returns a new instance of EmailAddress.



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

def initialize(object:, email_address:, reserved:, linked_to:, created_at:, updated_at:, id: nil, verification: nil, matches_sso_connection: nil)
  @object = object
  @email_address = email_address
  @reserved = reserved
  @linked_to = linked_to
  @created_at = created_at
  @updated_at = updated_at
  @id = id
  @verification = verification
  @matches_sso_connection = matches_sso_connection
end

Instance Method Details

#==(other) ⇒ Object



52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/clerk/models/components/emailaddress.rb', line 52

def ==(other)
  return false unless other.is_a? self.class
  return false unless @object == other.object
  return false unless @email_address == other.email_address
  return false unless @reserved == other.reserved
  return false unless @linked_to == other.linked_to
  return false unless @created_at == other.created_at
  return false unless @updated_at == other.updated_at
  return false unless @id == other.id
  return false unless @verification == other.verification
  return false unless @matches_sso_connection == other.matches_sso_connection
  true
end