Class: Quickbooks::Model::TaxCode

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/quickbooks/model/tax_code.rb

Constant Summary collapse

XML_COLLECTION_NODE =
"TaxCode"
XML_NODE =
"TaxCode"
REST_RESOURCE =
"taxcode"

Instance Method Summary collapse

Methods inherited from BaseModel

attribute_names, #attributes, #initialize, reference_setters, resource_for_collection, resource_for_singular, to_xml_big_decimal, #to_xml_inject_ns, #to_xml_ns

Constructor Details

This class inherits a constructor from Quickbooks::Model::BaseModel

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/quickbooks/model/tax_code.rb', line 18

def active?
  active == "true"
end

#tax_group?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/quickbooks/model/tax_code.rb', line 26

def tax_group?
  tax_group == "true"
end

#taxable?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/quickbooks/model/tax_code.rb', line 22

def taxable?
  taxable == "true"
end