Class: Clerk::Models::Components::OrganizationMembershipPublicUserData
- Inherits:
-
Object
- Object
- Clerk::Models::Components::OrganizationMembershipPublicUserData
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/organizationmembershippublicuserdata.rb
Overview
An organization membership with public user data populated
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(user_id:, image_url:, has_image:, first_name: nil, last_name: nil, profile_image_url: nil, identifier: nil, username: nil) ⇒ OrganizationMembershipPublicUserData
constructor
A new instance of OrganizationMembershipPublicUserData.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(user_id:, image_url:, has_image:, first_name: nil, last_name: nil, profile_image_url: nil, identifier: nil, username: nil) ⇒ OrganizationMembershipPublicUserData
Returns a new instance of OrganizationMembershipPublicUserData.
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/clerk/models/components/organizationmembershippublicuserdata.rb', line 33 def initialize(user_id:, image_url:, has_image:, first_name: nil, last_name: nil, profile_image_url: nil, identifier: nil, username: nil) @user_id = user_id @image_url = image_url @has_image = has_image @first_name = first_name @last_name = last_name @profile_image_url = profile_image_url @identifier = identifier @username = username end |
Instance Method Details
#==(other) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/clerk/models/components/organizationmembershippublicuserdata.rb', line 45 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 @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 @identifier == other.identifier return false unless @username == other.username true end |