Class: Clerk::Models::Components::SSOBypassAllowlistPublicUserData

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

Overview

The allowlisted user's public data.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(has_image:, identifier:, first_name: nil, last_name: nil, image_url: nil, username: nil, profile_image_url: nil) ⇒ SSOBypassAllowlistPublicUserData

Returns a new instance of SSOBypassAllowlistPublicUserData.



33
34
35
36
37
38
39
40
41
# File 'lib/clerk/models/components/ssobypassallowlistpublicuserdata.rb', line 33

def initialize(has_image:, identifier:, first_name: nil, last_name: nil, image_url: nil, username: nil, profile_image_url: nil)
  @has_image = has_image
  @identifier = identifier
  @first_name = first_name
  @last_name = last_name
  @image_url = image_url
  @username = username
  @profile_image_url = profile_image_url
end

Instance Method Details

#==(other) ⇒ Object



44
45
46
47
48
49
50
51
52
53
54
# File 'lib/clerk/models/components/ssobypassallowlistpublicuserdata.rb', line 44

def ==(other)
  return false unless other.is_a? self.class
  return false unless @has_image == other.has_image
  return false unless @identifier == other.identifier
  return false unless @first_name == other.first_name
  return false unless @last_name == other.last_name
  return false unless @image_url == other.image_url
  return false unless @username == other.username
  return false unless @profile_image_url == other.profile_image_url
  true
end