Class: GustoEmbedded::Models::Shared::TaxRequirementSetUpdate

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

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

Returns a new instance of TaxRequirementSetUpdate.



25
26
27
28
29
30
# File 'lib/gusto_embedded/models/shared/tax_requirement_set_update.rb', line 25

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

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/gusto_embedded/models/shared/tax_requirement_set_update.rb', line 33

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