Class: Clerk::Models::Operations::CreateOrganizationRequest

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(name:, created_by: nil, private_metadata: nil, public_metadata: nil, slug: nil, max_allowed_memberships: nil, created_at: nil) ⇒ CreateOrganizationRequest

Returns a new instance of CreateOrganizationRequest.



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

def initialize(name:, created_by: nil, private_metadata: nil, public_metadata: nil, slug: nil, max_allowed_memberships: nil, created_at: nil)
  @name = name
  @created_by = created_by
  @private_metadata = 
  @public_metadata = 
  @slug = slug
  @max_allowed_memberships = max_allowed_memberships
  @created_at = created_at
end

Instance Method Details

#==(other) ⇒ Object



47
48
49
50
51
52
53
54
55
56
57
# File 'lib/clerk/models/operations/createorganization_request.rb', line 47

def ==(other)
  return false unless other.is_a? self.class
  return false unless @name == other.name
  return false unless @created_by == other.created_by
  return false unless @private_metadata == other.
  return false unless @public_metadata == other.
  return false unless @slug == other.slug
  return false unless @max_allowed_memberships == other.max_allowed_memberships
  return false unless @created_at == other.created_at
  true
end