module Epages::REST::TaxClasses

implements the calls in developer.epages.com/apps/api-reference/resource-tax-classes

Public Instance Methods

tax_class(tax, options = {}) click to toggle source

implements the call developer.epages.com/apps/api-reference/get-shops-shopid-tax-classes-taxclassid.html

# File lib/epages/rest/tax_classes.rb, line 10
def tax_class(tax, options = {})
  id = epages_id(tax)
  perform_get_with_object("/tax-classes/#{id}", options, Epages::TaxClass)
end
tax_classes(options = {}) click to toggle source

implements the call developer.epages.com/apps/api-reference/get-shops-shopid-tax-classes.html

# File lib/epages/rest/tax_classes.rb, line 16
def tax_classes(options = {})
  perform_get_with_key_and_objects("/tax-classes/", options, :items, Epages::TaxClass)
end