Class: Clerk::Models::Components::DirectoryGroup

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

Overview

A group reported by the identity provider for a directory.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(object:, id:, display_name:, updated_at:) ⇒ DirectoryGroup

Returns a new instance of DirectoryGroup.



25
26
27
28
29
30
# File 'lib/clerk/models/components/directorygroup.rb', line 25

def initialize(object:, id:, display_name:, updated_at:)
  @object = object
  @id = id
  @display_name = display_name
  @updated_at = updated_at
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/clerk/models/components/directorygroup.rb', line 33

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 @display_name == other.display_name
  return false unless @updated_at == other.updated_at
  true
end