Class: GustoEmbedded::Models::Shared::Compensation
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::Compensation
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/compensation.rb
Overview
The representation of compensation in Gusto.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid:, version: nil, job_uuid: nil, employee_uuid: nil, rate: nil, payment_unit: nil, flsa_status: nil, title: nil, effective_date: nil, adjust_for_minimum_wage: nil, minimum_wages: nil) ⇒ Compensation
constructor
A new instance of Compensation.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid:, version: nil, job_uuid: nil, employee_uuid: nil, rate: nil, payment_unit: nil, flsa_status: nil, title: nil, effective_date: nil, adjust_for_minimum_wage: nil, minimum_wages: nil) ⇒ Compensation
Returns a new instance of Compensation.
39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/gusto_embedded/models/shared/compensation.rb', line 39 def initialize(uuid:, version: nil, job_uuid: nil, employee_uuid: nil, rate: nil, payment_unit: nil, flsa_status: nil, title: nil, effective_date: nil, adjust_for_minimum_wage: nil, minimum_wages: nil) @uuid = uuid @version = version @job_uuid = job_uuid @employee_uuid = employee_uuid @rate = rate @payment_unit = payment_unit @flsa_status = flsa_status @title = title @effective_date = effective_date @adjust_for_minimum_wage = adjust_for_minimum_wage @minimum_wages = minimum_wages end |
Instance Method Details
#==(other) ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/gusto_embedded/models/shared/compensation.rb', line 54 def ==(other) return false unless other.is_a? self.class return false unless @uuid == other.uuid return false unless @version == other.version return false unless @job_uuid == other.job_uuid return false unless @employee_uuid == other.employee_uuid 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 @title == other.title return false unless @effective_date == other.effective_date return false unless @adjust_for_minimum_wage == other.adjust_for_minimum_wage return false unless @minimum_wages == other.minimum_wages true end |