Class: GustoEmbedded::Operations::Earnings
- Inherits:
-
Crystalline::FieldAugmented
- Object
- Crystalline::FieldAugmented
- GustoEmbedded::Operations::Earnings
- Extended by:
- T::Sig
- Defined in:
- lib/gusto_embedded/models/operations/earnings.rb
Overview
An array of earnings for the employee. Depends on your company selections, earnings includes wages, hours, bonuses, tips, commission and more.
Instance Method Summary collapse
-
#initialize(amount: nil, earning_id: nil, earning_type: nil, hours: nil) ⇒ Earnings
constructor
A new instance of Earnings.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(amount: nil, earning_id: nil, earning_type: nil, hours: nil) ⇒ Earnings
Returns a new instance of Earnings.
25 26 27 28 29 30 |
# File 'lib/gusto_embedded/models/operations/earnings.rb', line 25 def initialize(amount: nil, earning_id: nil, earning_type: nil, hours: nil) @amount = amount @earning_id = earning_id @earning_type = earning_type @hours = hours end |