Class: Xeroizer::Record::TaxRateModel

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/xeroizer/models/tax_rate.rb

Constant Summary

Constant Summary

Constants inherited from BaseModel

BaseModel::ALLOWED_PERMISSIONS, BaseModel::DEFAULT_RECORDS_PER_BATCH_SAVE

Instance Attribute Summary

Attributes inherited from BaseModel

#application, #model_class, #model_name, #response

Instance Method Summary collapse

Methods inherited from BaseModel

#all, #api_controller_name, #batch_save, #build, #create, #find, #first, #initialize, #mark_clean, #mark_dirty, #parse_response, set_api_controller_name, set_optional_xml_root_name, set_permissions, set_xml_node_name, set_xml_root_name

Methods included from BaseModelHttpProxy

included

Methods included from ClassLevelInheritableAttributes

included

Constructor Details

This class inherits a constructor from Xeroizer::Record::BaseModel

Instance Method Details

#create_methodObject

TaxRates can be created using either POST or PUT. POST will also silently update the tax, which can be unexpected. PUT is only for create.



11
12
13
# File 'lib/xeroizer/models/tax_rate.rb', line 11

def create_method
  :http_put
end