Class: Clerk::Models::Components::User
- Inherits:
-
Object
- Object
- Clerk::Models::Components::User
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/user.rb
Overview
Success
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id:, object:, has_image:, public_metadata:, email_addresses:, phone_numbers:, web3_wallets:, passkeys:, password_enabled:, two_factor_enabled:, totp_enabled:, backup_code_enabled:, external_accounts:, saml_accounts:, enterprise_accounts:, banned:, locked:, updated_at:, created_at:, delete_self_enabled:, create_organization_enabled:, external_id: nil, primary_email_address_id: nil, primary_phone_number_id: nil, primary_web3_wallet_id: nil, username: nil, first_name: nil, last_name: nil, profile_image_url: nil, image_url: nil, unsafe_metadata: nil, mfa_enabled_at: nil, mfa_disabled_at: nil, organization_memberships: nil, last_sign_in_at: nil, lockout_expires_in_seconds: nil, verification_attempts_remaining: nil, last_active_at: nil, legal_accepted_at: nil, locale: nil, private_metadata: nil, password_last_updated_at: nil, create_organizations_limit: nil, bypass_client_trust: false) ⇒ User
constructor
A new instance of User.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id:, object:, has_image:, public_metadata:, email_addresses:, phone_numbers:, web3_wallets:, passkeys:, password_enabled:, two_factor_enabled:, totp_enabled:, backup_code_enabled:, external_accounts:, saml_accounts:, enterprise_accounts:, banned:, locked:, updated_at:, created_at:, delete_self_enabled:, create_organization_enabled:, external_id: nil, primary_email_address_id: nil, primary_phone_number_id: nil, primary_web3_wallet_id: nil, username: nil, first_name: nil, last_name: nil, profile_image_url: nil, image_url: nil, unsafe_metadata: nil, mfa_enabled_at: nil, mfa_disabled_at: nil, organization_memberships: nil, last_sign_in_at: nil, lockout_expires_in_seconds: nil, verification_attempts_remaining: nil, last_active_at: nil, legal_accepted_at: nil, locale: nil, private_metadata: nil, password_last_updated_at: nil, create_organizations_limit: nil, bypass_client_trust: false) ⇒ User
Returns a new instance of User.
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
# File 'lib/clerk/models/components/user.rb', line 121 def initialize(id:, object:, has_image:, public_metadata:, email_addresses:, phone_numbers:, web3_wallets:, passkeys:, password_enabled:, two_factor_enabled:, totp_enabled:, backup_code_enabled:, external_accounts:, saml_accounts:, enterprise_accounts:, banned:, locked:, updated_at:, created_at:, delete_self_enabled:, create_organization_enabled:, external_id: nil, primary_email_address_id: nil, primary_phone_number_id: nil, primary_web3_wallet_id: nil, username: nil, first_name: nil, last_name: nil, profile_image_url: nil, image_url: nil, unsafe_metadata: nil, mfa_enabled_at: nil, mfa_disabled_at: nil, organization_memberships: nil, last_sign_in_at: nil, lockout_expires_in_seconds: nil, verification_attempts_remaining: nil, last_active_at: nil, legal_accepted_at: nil, locale: nil, private_metadata: nil, password_last_updated_at: nil, create_organizations_limit: nil, bypass_client_trust: false) @id = id @object = object @has_image = has_image = @email_addresses = email_addresses @phone_numbers = phone_numbers @web3_wallets = web3_wallets @passkeys = passkeys @password_enabled = password_enabled @two_factor_enabled = two_factor_enabled @totp_enabled = totp_enabled @backup_code_enabled = backup_code_enabled @external_accounts = external_accounts @saml_accounts = saml_accounts @enterprise_accounts = enterprise_accounts @banned = banned @locked = locked @updated_at = updated_at @created_at = created_at @delete_self_enabled = delete_self_enabled @create_organization_enabled = create_organization_enabled @external_id = external_id @primary_email_address_id = primary_email_address_id @primary_phone_number_id = primary_phone_number_id @primary_web3_wallet_id = primary_web3_wallet_id @username = username @first_name = first_name @last_name = last_name @profile_image_url = profile_image_url @image_url = image_url = @mfa_enabled_at = mfa_enabled_at @mfa_disabled_at = mfa_disabled_at @organization_memberships = organization_memberships @last_sign_in_at = last_sign_in_at @lockout_expires_in_seconds = lockout_expires_in_seconds @verification_attempts_remaining = verification_attempts_remaining @last_active_at = last_active_at @legal_accepted_at = legal_accepted_at @locale = locale = @password_last_updated_at = password_last_updated_at @create_organizations_limit = create_organizations_limit @bypass_client_trust = bypass_client_trust end |
Instance Method Details
#==(other) ⇒ Object
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
# File 'lib/clerk/models/components/user.rb', line 169 def ==(other) return false unless other.is_a? self.class return false unless @id == other.id return false unless @object == other.object return false unless @has_image == other.has_image return false unless == other. return false unless @email_addresses == other.email_addresses return false unless @phone_numbers == other.phone_numbers return false unless @web3_wallets == other.web3_wallets return false unless @passkeys == other.passkeys return false unless @password_enabled == other.password_enabled return false unless @two_factor_enabled == other.two_factor_enabled return false unless @totp_enabled == other.totp_enabled return false unless @backup_code_enabled == other.backup_code_enabled return false unless @external_accounts == other.external_accounts return false unless @saml_accounts == other.saml_accounts return false unless @enterprise_accounts == other.enterprise_accounts return false unless @banned == other.banned return false unless @locked == other.locked return false unless @updated_at == other.updated_at return false unless @created_at == other.created_at return false unless @delete_self_enabled == other.delete_self_enabled return false unless @create_organization_enabled == other.create_organization_enabled return false unless @external_id == other.external_id return false unless @primary_email_address_id == other.primary_email_address_id return false unless @primary_phone_number_id == other.primary_phone_number_id return false unless @primary_web3_wallet_id == other.primary_web3_wallet_id return false unless @username == other.username return false unless @first_name == other.first_name return false unless @last_name == other.last_name return false unless @profile_image_url == other.profile_image_url return false unless @image_url == other.image_url return false unless == other. return false unless @mfa_enabled_at == other.mfa_enabled_at return false unless @mfa_disabled_at == other.mfa_disabled_at return false unless @organization_memberships == other.organization_memberships return false unless @last_sign_in_at == other.last_sign_in_at return false unless @lockout_expires_in_seconds == other.lockout_expires_in_seconds return false unless @verification_attempts_remaining == other.verification_attempts_remaining return false unless @last_active_at == other.last_active_at return false unless @legal_accepted_at == other.legal_accepted_at return false unless @locale == other.locale return false unless == other. return false unless @password_last_updated_at == other.password_last_updated_at return false unless @create_organizations_limit == other.create_organizations_limit return false unless @bypass_client_trust == other.bypass_client_trust true end |