Class: GustoEmbedded::Models::Shared::RehireUpdateRequestBody
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::RehireUpdateRequestBody
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/rehire_update_request_body.rb
Overview
Request body for updating an employee rehire.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(version:, effective_date:, file_new_hire_report:, work_location_uuid:, employment_status: nil, two_percent_shareholder: nil) ⇒ RehireUpdateRequestBody
constructor
A new instance of RehireUpdateRequestBody.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(version:, effective_date:, file_new_hire_report:, work_location_uuid:, employment_status: nil, two_percent_shareholder: nil) ⇒ RehireUpdateRequestBody
Returns a new instance of RehireUpdateRequestBody.
29 30 31 32 33 34 35 36 |
# File 'lib/gusto_embedded/models/shared/rehire_update_request_body.rb', line 29 def initialize(version:, effective_date:, file_new_hire_report:, work_location_uuid:, employment_status: nil, two_percent_shareholder: 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 end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/gusto_embedded/models/shared/rehire_update_request_body.rb', line 39 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 true end |