Class: Clerk::Models::Components::OrganizationDomain

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

Overview

An organization domain

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(object:, id:, organization_id:, name:, enrollment_mode:, total_pending_invitations:, total_pending_suggestions:, created_at:, updated_at:, affiliation_email_address: nil, verification: nil, public_organization_data: nil) ⇒ OrganizationDomain

Returns a new instance of OrganizationDomain.



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

def initialize(object:, id:, organization_id:, name:, enrollment_mode:, total_pending_invitations:, total_pending_suggestions:, created_at:, updated_at:, affiliation_email_address: nil, verification: nil, public_organization_data: nil)
  @object = object
  @id = id
  @organization_id = organization_id
  @name = name
  @enrollment_mode = enrollment_mode
  @total_pending_invitations = total_pending_invitations
  @total_pending_suggestions = total_pending_suggestions
  @created_at = created_at
  @updated_at = updated_at
  @affiliation_email_address = affiliation_email_address
  @verification = verification
  @public_organization_data = public_organization_data
end

Instance Method Details

#==(other) ⇒ Object



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

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 @organization_id == other.organization_id
  return false unless @name == other.name
  return false unless @enrollment_mode == other.enrollment_mode
  return false unless @total_pending_invitations == other.total_pending_invitations
  return false unless @total_pending_suggestions == other.total_pending_suggestions
  return false unless @created_at == other.created_at
  return false unless @updated_at == other.updated_at
  return false unless @affiliation_email_address == other.affiliation_email_address
  return false unless @verification == other.verification
  return false unless @public_organization_data == other.public_organization_data
  true
end