Class: GustoEmbedded::Models::Shared::Compensations

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

Overview

The available company-wide compensation rates for the company.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(hourly: nil, fixed: nil, paid_time_off: nil) ⇒ Compensations

Returns a new instance of Compensations.



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

def initialize(hourly: nil, fixed: nil, paid_time_off: nil)
  @hourly = hourly
  @fixed = fixed
  @paid_time_off = paid_time_off
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @hourly == other.hourly
  return false unless @fixed == other.fixed
  return false unless @paid_time_off == other.paid_time_off
  true
end