Class: Kombo::Models::Shared::Manager

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(id:, remote_id:, first_name: nil, last_name: nil, display_full_name: nil, employee_number: nil, termination_date: nil, work_email: nil, employment_status: nil) ⇒ Manager

Returns a new instance of Manager.



43
44
45
46
47
48
49
50
51
52
53
# File 'lib/kombo/models/shared/manager.rb', line 43

def initialize(id:, remote_id:, first_name: nil, last_name: nil, display_full_name: nil, employee_number: nil, termination_date: nil, work_email: nil, employment_status: nil)
  @id = id
  @remote_id = remote_id
  @first_name = first_name
  @last_name = last_name
  @display_full_name = display_full_name
  @employee_number = employee_number
  @termination_date = termination_date
  @work_email = work_email
  @employment_status = employment_status
end

Instance Method Details

#==(other) ⇒ Object



56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/kombo/models/shared/manager.rb', line 56

def ==(other)
  return false unless other.is_a? self.class
  return false unless @id == other.id
  return false unless @remote_id == other.remote_id
  return false unless @first_name == other.first_name
  return false unless @last_name == other.last_name
  return false unless @display_full_name == other.display_full_name
  return false unless @employee_number == other.employee_number
  return false unless @termination_date == other.termination_date
  return false unless @work_email == other.work_email
  return false unless @employment_status == other.employment_status
  true
end