Class: Clerk::Models::Components::OrganizationInvitationPublicUserData

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

Overview

An organization inviter’s public user data

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(user_id:, image_url:, has_image:, identifier:, first_name: nil, last_name: nil) ⇒ OrganizationInvitationPublicUserData

Returns a new instance of OrganizationInvitationPublicUserData.



29
30
31
32
33
34
35
36
# File 'lib/clerk/models/components/organizationinvitationpublicuserdata.rb', line 29

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

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @user_id == other.user_id
  return false unless @image_url == other.image_url
  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
  true
end