Class: Clerk::Models::Operations::UpdateOrganizationRequestBody

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(public_metadata: nil, private_metadata: nil, name: nil, slug: nil, max_allowed_memberships: nil, admin_delete_enabled: nil, created_at: nil, role_set_key: nil) ⇒ UpdateOrganizationRequestBody

Returns a new instance of UpdateOrganizationRequestBody.



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

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

Instance Method Details

#==(other) ⇒ Object



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

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