Class: GustoEmbedded::Models::Shared::CompensationsRequestBody

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

Overview

Request body for creating a compensation.

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:, effective_date: nil, title: nil, adjust_for_minimum_wage: nil, minimum_wages: nil) ⇒ CompensationsRequestBody

Returns a new instance of CompensationsRequestBody.



31
32
33
34
35
36
37
38
39
# File 'lib/gusto_embedded/models/shared/compensations_request_body.rb', line 31

def initialize(rate:, payment_unit:, flsa_status:, effective_date: nil, title: nil, adjust_for_minimum_wage: nil, minimum_wages: nil)
  @rate = rate
  @payment_unit = payment_unit
  @flsa_status = flsa_status
  @effective_date = effective_date
  @title = title
  @adjust_for_minimum_wage = adjust_for_minimum_wage
  @minimum_wages = minimum_wages
end

Instance Method Details

#==(other) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/gusto_embedded/models/shared/compensations_request_body.rb', line 42

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
  return false unless @effective_date == other.effective_date
  return false unless @title == other.title
  return false unless @adjust_for_minimum_wage == other.adjust_for_minimum_wage
  return false unless @minimum_wages == other.minimum_wages
  true
end