Class: QNE::TaxCodes
- Includes:
- QueryBuilder
- Defined in:
- lib/tax_codes.rb
Constant Summary
Constants included from QueryBuilder
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #all(params = {}) ⇒ Object
- #input_tax_codes(params = {}) ⇒ Object
- #output_tax_codes(params = {}) ⇒ Object
Methods included from QueryBuilder
#eq_query, #multi_query, #uri_query, #where
Methods inherited from Base
#initialize, #parse_to_json, #success?
Constructor Details
This class inherits a constructor from QNE::Base
Instance Method Details
#all(params = {}) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/tax_codes.rb', line 11 def all(params = {}) @response = QNE::TaxCode::All.new( conn, params: uri_query(params) ).call parse_to_json(@response.body) end |
#input_tax_codes(params = {}) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/tax_codes.rb', line 27 def input_tax_codes(params = {}) @response = QNE::TaxCode::InputTaxCodes.new( conn, params: uri_query(params) ).call parse_to_json(@response.body) end |
#output_tax_codes(params = {}) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/tax_codes.rb', line 19 def output_tax_codes(params = {}) @response = QNE::TaxCode::OutputTaxCodes.new( conn, params: uri_query(params) ).call parse_to_json(@response.body) end |