Class: GustoEmbedded::Models::Shared::HourlyCompensations

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

Instance Method Summary collapse

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) ⇒ HourlyCompensations

Returns a new instance of HourlyCompensations.



29
30
31
32
33
34
35
36
# File 'lib/gusto_embedded/models/shared/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/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