Class: CldProvisioning::Models::Shared::UserGroupSummary

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/cld_provisioning/models/shared/usergroupsummary.rb

Overview

User group summary.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id: nil, name: nil) ⇒ UserGroupSummary

Returns a new instance of UserGroupSummary.



29
30
31
32
# File 'lib/cld_provisioning/models/shared/usergroupsummary.rb', line 29

def initialize(id: nil, name: nil)
  @id = id
  @name = name
end

Instance Method Details

#==(other) ⇒ Object



35
36
37
38
39
40
# File 'lib/cld_provisioning/models/shared/usergroupsummary.rb', line 35

def ==(other)
  return false unless other.is_a?(self.class)
  return false unless @id == other.id
  return false unless @name == other.name
  true
end