Class: GustoEmbedded::Models::Shared::PayrollShowHourlyCompensations
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::PayrollShowHourlyCompensations
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/payroll_show_hourly_compensations.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name: nil, hours: nil, amount: nil, job_uuid: nil, compensation_multiplier: nil, flsa_status: nil) ⇒ PayrollShowHourlyCompensations
constructor
A new instance of PayrollShowHourlyCompensations.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(name: nil, hours: nil, amount: nil, job_uuid: nil, compensation_multiplier: nil, flsa_status: nil) ⇒ PayrollShowHourlyCompensations
Returns a new instance of PayrollShowHourlyCompensations.
29 30 31 32 33 34 35 36 |
# File 'lib/gusto_embedded/models/shared/payroll_show_hourly_compensations.rb', line 29 def initialize(name: nil, hours: nil, amount: nil, job_uuid: nil, compensation_multiplier: nil, flsa_status: nil) @name = name @hours = hours @amount = amount @job_uuid = job_uuid @compensation_multiplier = compensation_multiplier @flsa_status = flsa_status end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/gusto_embedded/models/shared/payroll_show_hourly_compensations.rb', line 39 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 @amount == other.amount return false unless @job_uuid == other.job_uuid return false unless @compensation_multiplier == other.compensation_multiplier return false unless @flsa_status == other.flsa_status true end |