Sha256: 23c698c03e63adce9a7fa0f8b118de003e9ef8e87c4f1e1b720ee38abbe66de5
Contents?: true
Size: 1.68 KB
Versions: 9
Compression:
Stored size: 1.68 KB
Contents
module TophatterMerchant class Metadata < Resource class << self # ap TophatterMerchant::Metadata.all def all get(url: "#{path}.json") end # ap TophatterMerchant::Metadata.categories def categories get(url: "#{path}/categories.json") end # ap TophatterMerchant::Metadata.conditions def conditions get(url: "#{path}/conditions.json") end # ap TophatterMerchant::Metadata.brands def brands get(url: "#{path}/brands.json") end # ap TophatterMerchant::Metadata.materials def materials get(url: "#{path}/materials.json") end # ap TophatterMerchant::Metadata.sizes def sizes get(url: "#{path}/sizes.json") end # ap TophatterMerchant::Metadata.colors def colors get(url: "#{path}/colors.json") end # ap TophatterMerchant::Metadata.countries def countries get(url: "#{path}/countries.json") end # ap TophatterMerchant::Metadata.country_codes def country_codes get(url: "#{path}/country_codes.json") end # ap TophatterMerchant::Metadata.states def states get(url: "#{path}/states.json") end # ap TophatterMerchant::Metadata.provinces def provinces get(url: "#{path}/provinces.json") end # ap TophatterMerchant::Metadata.territories def territories get(url: "#{path}/territories.json") end # ap TophatterMerchant::Metadata.carriers def carriers get(url: "#{path}/carriers.json") end protected def path super + '/metadata' end end end end
Version data entries
9 entries across 9 versions & 1 rubygems