Class: Tangolicious::Catalog

Inherits:
Resource
  • Object
show all
Defined in:
lib/tangolicious/catalog.rb

Class Method Summary collapse

Methods inherited from Resource

#initialize, request, retrieve, wrap

Methods included from Util

#call_recursively

Constructor Details

This class inherits a constructor from Tangolicious::Resource

Class Method Details

.endpointObject



11
12
13
# File 'lib/tangolicious/catalog.rb', line 11

def self.endpoint
  'catalogs'
end

.listObject



6
7
8
9
# File 'lib/tangolicious/catalog.rb', line 6

def self.list
  response = request.get(endpoint)
  { brands: Brand.wrap(response['brands']), catalog_name: response['catalogName'] }
end