Class: TophatterMerchant::Metadata

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

Class Method Summary collapse

Methods inherited from Resource

attr_accessor, #attributes, attributes, #attributes=, #initialize, #persisted?, #to_h

Constructor Details

This class inherits a constructor from TophatterMerchant::Resource

Class Method Details

.allObject

ap TophatterMerchant::Metadata.all



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

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

.brandsObject

ap TophatterMerchant::Metadata.brands



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

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

.carriersObject

ap TophatterMerchant::Metadata.carriers



65
66
67
# File 'lib/tophatter_merchant/metadata.rb', line 65

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

.categoriesObject

ap TophatterMerchant::Metadata.categories



10
11
12
# File 'lib/tophatter_merchant/metadata.rb', line 10

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

.colorsObject

ap TophatterMerchant::Metadata.colors



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

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

.conditionsObject

ap TophatterMerchant::Metadata.conditions



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

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

.countriesObject

ap TophatterMerchant::Metadata.countries



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

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

.country_codesObject

ap TophatterMerchant::Metadata.country_codes



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

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

.materialsObject

ap TophatterMerchant::Metadata.materials



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

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

.provincesObject

ap TophatterMerchant::Metadata.provinces



55
56
57
# File 'lib/tophatter_merchant/metadata.rb', line 55

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

.sizesObject

ap TophatterMerchant::Metadata.sizes



30
31
32
# File 'lib/tophatter_merchant/metadata.rb', line 30

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

.statesObject

ap TophatterMerchant::Metadata.states



50
51
52
# File 'lib/tophatter_merchant/metadata.rb', line 50

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

.territoriesObject

ap TophatterMerchant::Metadata.territories



60
61
62
# File 'lib/tophatter_merchant/metadata.rb', line 60

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