Class: GustoEmbedded::Models::Shared::TaxRequirement

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(key: nil, applicable_if: nil, label: nil, metadata: nil, editable: nil, description: nil, value: nil) ⇒ TaxRequirement

Returns a new instance of TaxRequirement.



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

def initialize(key: nil, applicable_if: nil, label: nil, metadata: nil, editable: nil, description: nil, value: nil)
  @key = key
  @applicable_if = applicable_if
  @label = label
  @metadata = 
  @editable = editable
  @description = description
  @value = value
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @key == other.key
  return false unless @applicable_if == other.applicable_if
  return false unless @label == other.label
  return false unless @metadata == other.
  return false unless @editable == other.editable
  return false unless @description == other.description
  return false unless @value == other.value
  true
end