Class: Clerk::Models::Components::ExternalAccountWithVerification

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(object:, id:, provider:, identification_id:, provider_user_id:, approved_scopes:, email_address:, first_name:, last_name:, public_metadata:, created_at:, updated_at:, avatar_url: nil, verification: nil, additional_properties: nil, email_address_verified: nil, image_url: nil, username: nil, phone_number: nil, label: nil) ⇒ ExternalAccountWithVerification

Returns a new instance of ExternalAccountWithVerification.



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/clerk/models/components/externalaccountwithverification.rb', line 62

def initialize(object:, id:, provider:, identification_id:, provider_user_id:, approved_scopes:, email_address:, first_name:, last_name:, public_metadata:, created_at:, updated_at:, avatar_url: nil, verification: nil, additional_properties: nil, email_address_verified: nil, image_url: nil, username: nil, phone_number: nil, label: nil)
  @object = object
  @id = id
  @provider = provider
  @identification_id = identification_id
  @provider_user_id = provider_user_id
  @approved_scopes = approved_scopes
  @email_address = email_address
  @first_name = first_name
  @last_name = last_name
  @public_metadata = 
  @created_at = created_at
  @updated_at = updated_at
  @avatar_url = avatar_url
  @verification = verification
  @additional_properties = additional_properties
  @email_address_verified = email_address_verified
  @image_url = image_url
  @username = username
  @phone_number = phone_number
  @label = label
end

Instance Method Details

#==(other) ⇒ Object



86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# File 'lib/clerk/models/components/externalaccountwithverification.rb', line 86

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 @provider == other.provider
  return false unless @identification_id == other.identification_id
  return false unless @provider_user_id == other.provider_user_id
  return false unless @approved_scopes == other.approved_scopes
  return false unless @email_address == other.email_address
  return false unless @first_name == other.first_name
  return false unless @last_name == other.last_name
  return false unless @public_metadata == other.
  return false unless @created_at == other.created_at
  return false unless @updated_at == other.updated_at
  return false unless @avatar_url == other.avatar_url
  return false unless @verification == other.verification
  return false unless @additional_properties == other.additional_properties
  return false unless @email_address_verified == other.email_address_verified
  return false unless @image_url == other.image_url
  return false unless @username == other.username
  return false unless @phone_number == other.phone_number
  return false unless @label == other.label
  true
end