Class: StackOne::Models::Shared::Employee

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(avatar: nil, avatar_url: nil, bank_details: nil, benefits: nil, birthday: nil, citizenships: nil, company: nil, company_id: nil, company_name: nil, cost_centers: nil, created_at: nil, custom_fields: nil, date_of_birth: nil, department: nil, department_id: nil, display_name: nil, employee_number: nil, employment_contract_type: nil, employment_status: nil, employment_type: nil, employments: nil, ethnicity: nil, first_name: nil, gender: nil, groups: nil, hire_date: nil, home_location: nil, id: nil, job_description: nil, job_id: nil, job_title: nil, last_name: nil, manager_id: nil, marital_status: nil, name: nil, national_identity_number: nil, national_identity_numbers: nil, personal_email: nil, personal_phone_number: nil, preferred_language: nil, remote_id: nil, remote_manager_id: nil, skills: nil, start_date: nil, tenure: nil, termination_date: nil, title: nil, unified_custom_fields: nil, updated_at: nil, work_anniversary: nil, work_email: nil, work_location: nil, work_phone_number: nil) ⇒ Employee

Returns a new instance of Employee.



145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
# File 'lib/stack_one/models/shared/employee.rb', line 145

def initialize(avatar: nil, avatar_url: nil, bank_details: nil, benefits: nil, birthday: nil, citizenships: nil, company: nil, company_id: nil, company_name: nil, cost_centers: nil, created_at: nil, custom_fields: nil, date_of_birth: nil, department: nil, department_id: nil, display_name: nil, employee_number: nil, employment_contract_type: nil, employment_status: nil, employment_type: nil, employments: nil, ethnicity: nil, first_name: nil, gender: nil, groups: nil, hire_date: nil, home_location: nil, id: nil, job_description: nil, job_id: nil, job_title: nil, last_name: nil, manager_id: nil, marital_status: nil, name: nil, national_identity_number: nil, national_identity_numbers: nil, personal_email: nil, personal_phone_number: nil, preferred_language: nil, remote_id: nil, remote_manager_id: nil, skills: nil, start_date: nil, tenure: nil, termination_date: nil, title: nil, unified_custom_fields: nil, updated_at: nil, work_anniversary: nil, work_email: nil, work_location: nil, work_phone_number: nil)
  @avatar = avatar
  @avatar_url = avatar_url
  @bank_details = bank_details
  @benefits = benefits
  @birthday = birthday
  @citizenships = citizenships
  @company = company
  @company_id = company_id
  @company_name = company_name
  @cost_centers = cost_centers
  @created_at = created_at
  @custom_fields = custom_fields
  @date_of_birth = date_of_birth
  @department = department
  @department_id = department_id
  @display_name = display_name
  @employee_number = employee_number
  @employment_contract_type = employment_contract_type
  @employment_status = employment_status
  @employment_type = employment_type
  @employments = employments
  @ethnicity = ethnicity
  @first_name = first_name
  @gender = gender
  @groups = groups
  @hire_date = hire_date
  @home_location = home_location
  @id = id
  @job_description = job_description
  @job_id = job_id
  @job_title = job_title
  @last_name = last_name
  @manager_id = manager_id
  @marital_status = marital_status
  @name = name
  @national_identity_number = national_identity_number
  @national_identity_numbers = national_identity_numbers
  @personal_email = personal_email
  @personal_phone_number = personal_phone_number
  @preferred_language = preferred_language
  @remote_id = remote_id
  @remote_manager_id = remote_manager_id
  @skills = skills
  @start_date = start_date
  @tenure = tenure
  @termination_date = termination_date
  @title = title
  @unified_custom_fields = unified_custom_fields
  @updated_at = updated_at
  @work_anniversary = work_anniversary
  @work_email = work_email
  @work_location = work_location
  @work_phone_number = work_phone_number
end

Instance Method Details

#==(other) ⇒ Object



202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
# File 'lib/stack_one/models/shared/employee.rb', line 202

def ==(other)
  return false unless other.is_a? self.class
  return false unless @avatar == other.avatar
  return false unless @avatar_url == other.avatar_url
  return false unless @bank_details == other.bank_details
  return false unless @benefits == other.benefits
  return false unless @birthday == other.birthday
  return false unless @citizenships == other.citizenships
  return false unless @company == other.company
  return false unless @company_id == other.company_id
  return false unless @company_name == other.company_name
  return false unless @cost_centers == other.cost_centers
  return false unless @created_at == other.created_at
  return false unless @custom_fields == other.custom_fields
  return false unless @date_of_birth == other.date_of_birth
  return false unless @department == other.department
  return false unless @department_id == other.department_id
  return false unless @display_name == other.display_name
  return false unless @employee_number == other.employee_number
  return false unless @employment_contract_type == other.employment_contract_type
  return false unless @employment_status == other.employment_status
  return false unless @employment_type == other.employment_type
  return false unless @employments == other.employments
  return false unless @ethnicity == other.ethnicity
  return false unless @first_name == other.first_name
  return false unless @gender == other.gender
  return false unless @groups == other.groups
  return false unless @hire_date == other.hire_date
  return false unless @home_location == other.home_location
  return false unless @id == other.id
  return false unless @job_description == other.job_description
  return false unless @job_id == other.job_id
  return false unless @job_title == other.job_title
  return false unless @last_name == other.last_name
  return false unless @manager_id == other.manager_id
  return false unless @marital_status == other.marital_status
  return false unless @name == other.name
  return false unless @national_identity_number == other.national_identity_number
  return false unless @national_identity_numbers == other.national_identity_numbers
  return false unless @personal_email == other.personal_email
  return false unless @personal_phone_number == other.personal_phone_number
  return false unless @preferred_language == other.preferred_language
  return false unless @remote_id == other.remote_id
  return false unless @remote_manager_id == other.remote_manager_id
  return false unless @skills == other.skills
  return false unless @start_date == other.start_date
  return false unless @tenure == other.tenure
  return false unless @termination_date == other.termination_date
  return false unless @title == other.title
  return false unless @unified_custom_fields == other.unified_custom_fields
  return false unless @updated_at == other.updated_at
  return false unless @work_anniversary == other.work_anniversary
  return false unless @work_email == other.work_email
  return false unless @work_location == other.work_location
  return false unless @work_phone_number == other.work_phone_number
  true
end