Class: CldProvisioning::Models::Shared::UserGroup

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

Overview

User group.

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, users: nil, created_at: nil, updated_at: nil) ⇒ UserGroup

Returns a new instance of UserGroup.



72
73
74
75
76
77
78
# File 'lib/cld_provisioning/models/shared/usergroup.rb', line 72

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

Instance Method Details

#==(other) ⇒ Object



81
82
83
84
85
86
87
88
89
# File 'lib/cld_provisioning/models/shared/usergroup.rb', line 81

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