Class: GustoEmbedded::Models::Shared::TaxRequirementSet

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(state: nil, key: nil, label: nil, requirements: nil, effective_from: nil) ⇒ TaxRequirementSet

Returns a new instance of TaxRequirementSet.



27
28
29
30
31
32
33
# File 'lib/gusto_embedded/models/shared/tax_requirement_set.rb', line 27

def initialize(state: nil, key: nil, label: nil, requirements: nil, effective_from: nil)
  @state = state
  @key = key
  @label = label
  @requirements = requirements
  @effective_from = effective_from
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/gusto_embedded/models/shared/tax_requirement_set.rb', line 36

def ==(other)
  return false unless other.is_a? self.class
  return false unless @state == other.state
  return false unless @key == other.key
  return false unless @label == other.label
  return false unless @requirements == other.requirements
  return false unless @effective_from == other.effective_from
  true
end