Class: GustoEmbedded::Models::Operations::Department

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

Overview

Department details for the employee

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(department_uuid:) ⇒ Department

Returns a new instance of Department.



19
20
21
# File 'lib/gusto_embedded/models/operations/department.rb', line 19

def initialize(department_uuid:)
  @department_uuid = department_uuid
end

Instance Method Details

#==(other) ⇒ Object



24
25
26
27
28
# File 'lib/gusto_embedded/models/operations/department.rb', line 24

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