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