Class: TophatterMerchant::Metadata

Inherits:
Resource
  • Object
show all
Defined in:
lib/tophatter_merchant/metadata.rb

Class Method Summary collapse

Methods inherited from Resource

#initialize, #to_hash

Constructor Details

This class inherits a constructor from TophatterMerchant::Resource

Class Method Details

.allObject



4
5
6
# File 'lib/tophatter_merchant/metadata.rb', line 4

def all
  get(url: "#{path}.json")
end

.brandsObject



16
17
18
# File 'lib/tophatter_merchant/metadata.rb', line 16

def brands
  get(url: "#{path}/brands.json")
end

.carriersObject



52
53
54
# File 'lib/tophatter_merchant/metadata.rb', line 52

def carriers
  get(url: "#{path}/carriers.json")
end

.categoriesObject



8
9
10
# File 'lib/tophatter_merchant/metadata.rb', line 8

def categories
  get(url: "#{path}/categories.json")
end

.colorsObject



28
29
30
# File 'lib/tophatter_merchant/metadata.rb', line 28

def colors
  get(url: "#{path}/colors.json")
end

.conditionsObject



12
13
14
# File 'lib/tophatter_merchant/metadata.rb', line 12

def conditions
  get(url: "#{path}/conditions.json")
end

.countriesObject



32
33
34
# File 'lib/tophatter_merchant/metadata.rb', line 32

def countries
  get(url: "#{path}/countries.json")
end

.country_codesObject



36
37
38
# File 'lib/tophatter_merchant/metadata.rb', line 36

def country_codes
  get(url: "#{path}/country_codes.json")
end

.materialsObject



20
21
22
# File 'lib/tophatter_merchant/metadata.rb', line 20

def materials
  get(url: "#{path}/materials.json")
end

.provincesObject



44
45
46
# File 'lib/tophatter_merchant/metadata.rb', line 44

def provinces
  get(url: "#{path}/provinces.json")
end

.sizesObject



24
25
26
# File 'lib/tophatter_merchant/metadata.rb', line 24

def sizes
  get(url: "#{path}/sizes.json")
end

.statesObject



40
41
42
# File 'lib/tophatter_merchant/metadata.rb', line 40

def states
  get(url: "#{path}/states.json")
end

.territoriesObject



48
49
50
# File 'lib/tophatter_merchant/metadata.rb', line 48

def territories
  get(url: "#{path}/territories.json")
end