Class: GustoEmbedded::Models::Shared::Department

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(version: nil, uuid: nil, company_uuid: nil, title: nil, employees: nil, contractors: nil) ⇒ Department

Returns a new instance of Department.



29
30
31
32
33
34
35
36
# File 'lib/gusto_embedded/models/shared/department.rb', line 29

def initialize(version: nil, uuid: nil, company_uuid: nil, title: nil, employees: nil, contractors: nil)
  @version = version
  @uuid = uuid
  @company_uuid = company_uuid
  @title = title
  @employees = employees
  @contractors = contractors
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/gusto_embedded/models/shared/department.rb', line 39

def ==(other)
  return false unless other.is_a? self.class
  return false unless @version == other.version
  return false unless @uuid == other.uuid
  return false unless @company_uuid == other.company_uuid
  return false unless @title == other.title
  return false unless @employees == other.employees
  return false unless @contractors == other.contractors
  true
end