Class: Clerk::Models::Components::SSOBypassAllowlistUser

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

Overview

A user who may verify an email code instead of reaching their identity provider when enterprise SSO is unreachable.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(object:, user_id:, public_user_data:, created_at:, updated_at:) ⇒ SSOBypassAllowlistUser

Returns a new instance of SSOBypassAllowlistUser.



28
29
30
31
32
33
34
# File 'lib/clerk/models/components/ssobypassallowlistuser.rb', line 28

def initialize(object:, user_id:, public_user_data:, created_at:, updated_at:)
  @object = object
  @user_id = user_id
  @public_user_data = public_user_data
  @created_at = created_at
  @updated_at = updated_at
end

Instance Method Details

#==(other) ⇒ Object



37
38
39
40
41
42
43
44
45
# File 'lib/clerk/models/components/ssobypassallowlistuser.rb', line 37

def ==(other)
  return false unless other.is_a? self.class
  return false unless @object == other.object
  return false unless @user_id == other.user_id
  return false unless @public_user_data == other.public_user_data
  return false unless @created_at == other.created_at
  return false unless @updated_at == other.updated_at
  true
end