Class: Clerk::Models::Components::UserDirectory Deprecated

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

Overview

Deprecated.

class: This will be removed in a future release, please migrate away from it as soon as possible.

The most recently updated directory link. Use directories for all links.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id:, directory_name:, provider:, directory_id:, directory_enabled:, enterprise_connection_id: nil, groups: nil, external_id: nil) ⇒ UserDirectory

Returns a new instance of UserDirectory.



38
39
40
41
42
43
44
45
46
47
# File 'lib/clerk/models/components/user_directory.rb', line 38

def initialize(id:, directory_name:, provider:, directory_id:, directory_enabled:, enterprise_connection_id: nil, groups: nil, external_id: nil)
  @id = id
  @directory_name = directory_name
  @provider = provider
  @directory_id = directory_id
  @directory_enabled = directory_enabled
  @enterprise_connection_id = enterprise_connection_id
  @groups = groups
  @external_id = external_id
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @id == other.id
  return false unless @directory_name == other.directory_name
  return false unless @provider == other.provider
  return false unless @directory_id == other.directory_id
  return false unless @directory_enabled == other.directory_enabled
  return false unless @enterprise_connection_id == other.enterprise_connection_id
  return false unless @groups == other.groups
  return false unless @external_id == other.external_id
  true
end