Class: GustoEmbedded::Models::Shared::Rehire
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::Rehire
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/rehire.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(version: nil, effective_date: nil, file_new_hire_report: nil, work_location_uuid: nil, employment_status: nil, two_percent_shareholder: nil, employee_uuid: nil, active: nil) ⇒ Rehire
constructor
A new instance of Rehire.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(version: nil, effective_date: nil, file_new_hire_report: nil, work_location_uuid: nil, employment_status: nil, two_percent_shareholder: nil, employee_uuid: nil, active: nil) ⇒ Rehire
Returns a new instance of Rehire.
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/gusto_embedded/models/shared/rehire.rb', line 33 def initialize(version: nil, effective_date: nil, file_new_hire_report: nil, work_location_uuid: nil, employment_status: nil, two_percent_shareholder: nil, employee_uuid: nil, active: nil) @version = version @effective_date = effective_date @file_new_hire_report = file_new_hire_report @work_location_uuid = work_location_uuid @employment_status = employment_status @two_percent_shareholder = two_percent_shareholder @employee_uuid = employee_uuid @active = active end |
Instance Method Details
#==(other) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/gusto_embedded/models/shared/rehire.rb', line 45 def ==(other) return false unless other.is_a? self.class return false unless @version == other.version return false unless @effective_date == other.effective_date return false unless @file_new_hire_report == other.file_new_hire_report return false unless @work_location_uuid == other.work_location_uuid return false unless @employment_status == other.employment_status return false unless @two_percent_shareholder == other.two_percent_shareholder return false unless @employee_uuid == other.employee_uuid return false unless @active == other.active true end |