Class: Clerk::Models::Components::OrganizationWithLogo

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(object:, id:, name:, slug:, image_url:, has_image:, max_allowed_memberships:, admin_delete_enabled:, public_metadata:, created_at:, updated_at:, members_count: nil, missing_member_with_elevated_permissions: nil, pending_invitations_count: nil, private_metadata: nil, created_by: nil, last_active_at: nil, logo_url: nil) ⇒ OrganizationWithLogo

Returns a new instance of OrganizationWithLogo.



56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/clerk/models/components/organizationwithlogo.rb', line 56

def initialize(object:, id:, name:, slug:, image_url:, has_image:, max_allowed_memberships:, admin_delete_enabled:, public_metadata:, created_at:, updated_at:, members_count: nil, missing_member_with_elevated_permissions: nil, pending_invitations_count: nil, private_metadata: nil, created_by: nil, last_active_at: nil, logo_url: nil)
  @object = object
  @id = id
  @name = name
  @slug = slug
  @image_url = image_url
  @has_image = has_image
  @max_allowed_memberships = max_allowed_memberships
  @admin_delete_enabled = admin_delete_enabled
   = 
  @created_at = created_at
  @updated_at = updated_at
  @members_count = members_count
  @missing_member_with_elevated_permissions = missing_member_with_elevated_permissions
  @pending_invitations_count = pending_invitations_count
   = 
  @created_by = created_by
  @last_active_at = last_active_at
  @logo_url = logo_url
end

Instance Method Details

#==(other) ⇒ Object



78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# File 'lib/clerk/models/components/organizationwithlogo.rb', line 78

def ==(other)
  return false unless other.is_a? self.class
  return false unless @object == other.object
  return false unless @id == other.id
  return false unless @name == other.name
  return false unless @slug == other.slug
  return false unless @image_url == other.image_url
  return false unless @has_image == other.has_image
  return false unless @max_allowed_memberships == other.max_allowed_memberships
  return false unless @admin_delete_enabled == other.admin_delete_enabled
  return false unless  == other.
  return false unless @created_at == other.created_at
  return false unless @updated_at == other.updated_at
  return false unless @members_count == other.members_count
  return false unless @missing_member_with_elevated_permissions == other.missing_member_with_elevated_permissions
  return false unless @pending_invitations_count == other.pending_invitations_count
  return false unless  == other.
  return false unless @created_by == other.created_by
  return false unless @last_active_at == other.last_active_at
  return false unless @logo_url == other.logo_url
  true
end