Class: GustoEmbedded::Models::Shared::PayrollUpdateHourlyCompensations
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::PayrollUpdateHourlyCompensations
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/payroll_update_hourly_compensations.rb
Overview
An array of hourly compensations for the employee. Hourly compensations include regular, overtime, and double overtime hours.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name: nil, hours: nil, job_uuid: nil) ⇒ PayrollUpdateHourlyCompensations
constructor
A new instance of PayrollUpdateHourlyCompensations.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(name: nil, hours: nil, job_uuid: nil) ⇒ PayrollUpdateHourlyCompensations
Returns a new instance of PayrollUpdateHourlyCompensations.
23 24 25 26 27 |
# File 'lib/gusto_embedded/models/shared/payroll_update_hourly_compensations.rb', line 23 def initialize(name: nil, hours: nil, job_uuid: nil) @name = name @hours = hours @job_uuid = job_uuid end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/gusto_embedded/models/shared/payroll_update_hourly_compensations.rb', line 30 def ==(other) return false unless other.is_a? self.class return false unless @name == other.name return false unless @hours == other.hours return false unless @job_uuid == other.job_uuid true end |