Class: GustoEmbedded::Models::Shared::MinimumWage

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

Overview

Representation of a Minimum Wage

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(uuid:, wage:, wage_type:, effective_date:, authority:, notes: nil) ⇒ MinimumWage

Returns a new instance of MinimumWage.



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

def initialize(uuid:, wage:, wage_type:, effective_date:, authority:, notes: nil)
  @uuid = uuid
  @wage = wage
  @wage_type = wage_type
  @effective_date = effective_date
  @authority = authority
  @notes = notes
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/gusto_embedded/models/shared/minimum_wage.rb', line 39

def ==(other)
  return false unless other.is_a? self.class
  return false unless @uuid == other.uuid
  return false unless @wage == other.wage
  return false unless @wage_type == other.wage_type
  return false unless @effective_date == other.effective_date
  return false unless @authority == other.authority
  return false unless @notes == other.notes
  true
end