Class: GustoEmbedded::Models::Shared::RehireBody
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::RehireBody
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/rehire_body.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(effective_date:, file_new_hire_report:, work_location_uuid:, employment_status: nil, two_percent_shareholder: nil) ⇒ RehireBody
constructor
A new instance of RehireBody.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(effective_date:, file_new_hire_report:, work_location_uuid:, employment_status: nil, two_percent_shareholder: nil) ⇒ RehireBody
Returns a new instance of RehireBody.
27 28 29 30 31 32 33 |
# File 'lib/gusto_embedded/models/shared/rehire_body.rb', line 27 def initialize(effective_date:, file_new_hire_report:, work_location_uuid:, employment_status: nil, two_percent_shareholder: nil) @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
36 37 38 39 40 41 42 43 44 |
# File 'lib/gusto_embedded/models/shared/rehire_body.rb', line 36 def ==(other) return false unless other.is_a? self.class 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 |