Class: GustoEmbedded::Models::Shared::TaxRequirementMetadataOptions
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::TaxRequirementMetadataOptions
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/tax_requirement_metadata_options.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(label:, value:, short_label: nil) ⇒ TaxRequirementMetadataOptions
constructor
A new instance of TaxRequirementMetadataOptions.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(label:, value:, short_label: nil) ⇒ TaxRequirementMetadataOptions
Returns a new instance of TaxRequirementMetadataOptions.
23 24 25 26 27 |
# File 'lib/gusto_embedded/models/shared/tax_requirement_metadata_options.rb', line 23 def initialize(label:, value:, short_label: nil) @label = label @value = value @short_label = short_label end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/gusto_embedded/models/shared/tax_requirement_metadata_options.rb', line 30 def ==(other) return false unless other.is_a? self.class return false unless @label == other.label return false unless @value == other.value return false unless @short_label == other.short_label true end |