Class: GustoEmbedded::Models::Shared::SupportedBenefit

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(benefit_type: nil, name: nil, description: nil, pretax: nil, posttax: nil, imputed: nil, healthcare: nil, retirement: nil, yearly_limit: nil, category: nil, writable_by_application: nil) ⇒ SupportedBenefit

Returns a new instance of SupportedBenefit.



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

def initialize(benefit_type: nil, name: nil, description: nil, pretax: nil, posttax: nil, imputed: nil, healthcare: nil, retirement: nil, yearly_limit: nil, category: nil, writable_by_application: nil)
  @benefit_type = benefit_type
  @name = name
  @description = description
  @pretax = pretax
  @posttax = posttax
  @imputed = imputed
  @healthcare = healthcare
  @retirement = retirement
  @yearly_limit = yearly_limit
  @category = category
  @writable_by_application = writable_by_application
end

Instance Method Details

#==(other) ⇒ Object



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/gusto_embedded/models/shared/supported_benefit.rb', line 54

def ==(other)
  return false unless other.is_a? self.class
  return false unless @benefit_type == other.benefit_type
  return false unless @name == other.name
  return false unless @description == other.description
  return false unless @pretax == other.pretax
  return false unless @posttax == other.posttax
  return false unless @imputed == other.imputed
  return false unless @healthcare == other.healthcare
  return false unless @retirement == other.retirement
  return false unless @yearly_limit == other.yearly_limit
  return false unless @category == other.category
  return false unless @writable_by_application == other.writable_by_application
  true
end