Sha256: 7d29b9a9191ff1de4bfb1213719e7a085d15b0fcbf3bbf4f4b9219de7fd29b31
Contents?: true
Size: 1.59 KB
Versions: 3
Compression:
Stored size: 1.59 KB
Contents
module TophatterMerchant class Metadata < Resource class << self # ap TophatterMerchant::Metadata.all def all get(url: "#{path}.json") end # ap TophatterMerchant::Metadata.conditions def conditions get(url: "#{path}/conditions.json") end # ap TophatterMerchant::Metadata.categories def categories get(url: "#{path}/categories.json") end # ap TophatterMerchant::Metadata.sizes def sizes get(url: "#{path}/sizes.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 # ap TophatterMerchant::Metadata.brands def brands get(url: "#{path}/brands.json") end def materials get(url: "#{path}/materials.json") end def gemstones get(url: "#{path}/gemstones.json") end protected def path super + '/metadata' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tophatter-merchant-1.1.3 | lib/tophatter_merchant/metadata.rb |
tophatter-merchant-1.1.2 | lib/tophatter_merchant/metadata.rb |
tophatter-merchant-1.1.1 | lib/tophatter_merchant/metadata.rb |