Class: Clerk::Models::Components::Directory
- Inherits:
-
Object
- Object
- Clerk::Models::Components::Directory
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/directory.rb
Overview
A directory configuration for provisioning users from an identity provider.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, id:, name:, endpoint_url:, provider:, enabled:, paused:, group_role_mapping_enabled:, attribute_mapping:, created_at:, updated_at:, custom_attributes: nil, enterprise_connection_id: nil, api_key: nil) ⇒ Directory
constructor
A new instance of Directory.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, id:, name:, endpoint_url:, provider:, enabled:, paused:, group_role_mapping_enabled:, attribute_mapping:, created_at:, updated_at:, custom_attributes: nil, enterprise_connection_id: nil, api_key: nil) ⇒ Directory
Returns a new instance of Directory.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/clerk/models/components/directory.rb', line 47 def initialize(object:, id:, name:, endpoint_url:, provider:, enabled:, paused:, group_role_mapping_enabled:, attribute_mapping:, created_at:, updated_at:, custom_attributes: nil, enterprise_connection_id: nil, api_key: nil) @object = object @id = id @name = name @endpoint_url = endpoint_url @provider = provider @enabled = enabled @paused = paused @group_role_mapping_enabled = group_role_mapping_enabled @attribute_mapping = attribute_mapping @created_at = created_at @updated_at = updated_at @custom_attributes = custom_attributes @enterprise_connection_id = enterprise_connection_id @api_key = api_key end |
Instance Method Details
#==(other) ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/clerk/models/components/directory.rb', line 65 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 @name == other.name return false unless @endpoint_url == other.endpoint_url return false unless @provider == other.provider return false unless @enabled == other.enabled return false unless @paused == other.paused return false unless @group_role_mapping_enabled == other.group_role_mapping_enabled return false unless @attribute_mapping == other.attribute_mapping return false unless @created_at == other.created_at return false unless @updated_at == other.updated_at return false unless @custom_attributes == other.custom_attributes return false unless @enterprise_connection_id == other.enterprise_connection_id return false unless @api_key == other.api_key true end |