Class: Clerk::Models::Components::OrganizationInvitationPublicOrganizationData

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id:, name:, slug:, has_image:, image_url: nil) ⇒ OrganizationInvitationPublicOrganizationData

Returns a new instance of OrganizationInvitationPublicOrganizationData.



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

def initialize(id:, name:, slug:, has_image:, image_url: nil)
  @id = id
  @name = name
  @slug = slug
  @has_image = has_image
  @image_url = image_url
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @id == other.id
  return false unless @name == other.name
  return false unless @slug == other.slug
  return false unless @has_image == other.has_image
  return false unless @image_url == other.image_url
  true
end