Class: Clerk::Models::Components::SCIMGroupRoleMapping
- Inherits:
-
Object
- Object
- Clerk::Models::Components::SCIMGroupRoleMapping
- 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
- #==(other) ⇒ Object
-
#initialize(object:, id:, scim_directory_id:, directory_id:, scim_group_id:, directory_group_id:, scim_group_display_name:, directory_group_display_name:, precedence:, created_at:, updated_at:, role: nil) ⇒ SCIMGroupRoleMapping
constructor
A new instance of SCIMGroupRoleMapping.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, id:, scim_directory_id:, directory_id:, scim_group_id:, directory_group_id:, scim_group_display_name:, directory_group_display_name:, precedence:, created_at:, updated_at:, role: nil) ⇒ SCIMGroupRoleMapping
Returns a new instance of SCIMGroupRoleMapping.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/clerk/models/components/scimgrouprolemapping.rb', line 41 def initialize(object:, id:, scim_directory_id:, directory_id:, scim_group_id:, directory_group_id:, scim_group_display_name:, directory_group_display_name:, precedence:, created_at:, updated_at:, role: nil) @object = object @id = id @scim_directory_id = scim_directory_id @directory_id = directory_id @scim_group_id = scim_group_id @directory_group_id = directory_group_id @scim_group_display_name = scim_group_display_name @directory_group_display_name = directory_group_display_name @precedence = precedence @created_at = created_at @updated_at = updated_at @role = role end |
Instance Method Details
#==(other) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/clerk/models/components/scimgrouprolemapping.rb', line 57 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 @directory_id == other.directory_id return false unless @scim_group_id == other.scim_group_id return false unless @directory_group_id == other.directory_group_id return false unless @scim_group_display_name == other.scim_group_display_name return false unless @directory_group_display_name == other.directory_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 |