Class: GustoEmbedded::Models::Operations::Compensation

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/operations/compensation.rb

Overview

Compensation details for the employee (requires job to be provided)

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(rate:, payment_unit:, flsa_status:) ⇒ Compensation

Returns a new instance of Compensation.



23
24
25
26
27
# File 'lib/gusto_embedded/models/operations/compensation.rb', line 23

def initialize(rate:, payment_unit:, flsa_status:)
  @rate = rate
  @payment_unit = payment_unit
  @flsa_status = flsa_status
end

Instance Method Details

#==(other) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/gusto_embedded/models/operations/compensation.rb', line 30

def ==(other)
  return false unless other.is_a? self.class
  return false unless @rate == other.rate
  return false unless @payment_unit == other.payment_unit
  return false unless @flsa_status == other.flsa_status
  true
end