Class: CldProvisioning::Models::Shared::UserGroupUser

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

Overview

User group user.

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, email: nil) ⇒ UserGroupUser

Returns a new instance of UserGroupUser.



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

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

Instance Method Details

#==(other) ⇒ Object



42
43
44
45
46
47
48
# File 'lib/cld_provisioning/models/shared/usergroupuser.rb', line 42

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