Class: Clerk::Models::Components::SCIMGroupRoleMapping

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

Overview

A mapping from a SCIM group to an organization role. Members of the group are assigned the role; the lowest-precedence match wins when a user belongs to multiple mapped groups.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(object:, id:, scim_directory_id:, scim_group_id:, scim_group_display_name:, precedence:, created_at:, updated_at:, role: nil) ⇒ SCIMGroupRoleMapping

Returns a new instance of SCIMGroupRoleMapping.



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

def initialize(object:, id:, scim_directory_id:, scim_group_id:, scim_group_display_name:, precedence:, created_at:, updated_at:, role: nil)
  @object = object
  @id = id
  @scim_directory_id = scim_directory_id
  @scim_group_id = scim_group_id
  @scim_group_display_name = scim_group_display_name
  @precedence = precedence
  @created_at = created_at
  @updated_at = updated_at
  @role = role
end

Instance Method Details

#==(other) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/clerk/models/components/scimgrouprolemapping.rb', line 48

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 @scim_directory_id == other.scim_directory_id
  return false unless @scim_group_id == other.scim_group_id
  return false unless @scim_group_display_name == other.scim_group_display_name
  return false unless @precedence == other.precedence
  return false unless @created_at == other.created_at
  return false unless @updated_at == other.updated_at
  return false unless @role == other.role
  true
end