Class: GustoEmbedded::Models::Shared::EmploymentHistoryList
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::EmploymentHistoryList
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/employment_history_list.rb
Overview
The representation of an employee’s individual employements.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(hire_date: nil, file_new_hire_report: nil, two_percent_shareholder: nil, employment_status: nil, termination_date: nil) ⇒ EmploymentHistoryList
constructor
A new instance of EmploymentHistoryList.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(hire_date: nil, file_new_hire_report: nil, two_percent_shareholder: nil, employment_status: nil, termination_date: nil) ⇒ EmploymentHistoryList
Returns a new instance of EmploymentHistoryList.
27 28 29 30 31 32 33 |
# File 'lib/gusto_embedded/models/shared/employment_history_list.rb', line 27 def initialize(hire_date: nil, file_new_hire_report: nil, two_percent_shareholder: nil, employment_status: nil, termination_date: nil) @hire_date = hire_date @file_new_hire_report = file_new_hire_report @two_percent_shareholder = two_percent_shareholder @employment_status = employment_status @termination_date = termination_date end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/gusto_embedded/models/shared/employment_history_list.rb', line 36 def ==(other) return false unless other.is_a? self.class return false unless @hire_date == other.hire_date return false unless @file_new_hire_report == other.file_new_hire_report return false unless @two_percent_shareholder == other.two_percent_shareholder return false unless @employment_status == other.employment_status return false unless @termination_date == other.termination_date true end |