class Nugz::Stores

Public Class Methods

all() click to toggle source
# File lib/nugz/stores.rb, line 4
def self.all
  response = Faraday.get('http://www.milehighbuzz.co/api/v1/stores')
  JSON.parse(response.body)
end
find_store(slug) click to toggle source
# File lib/nugz/stores.rb, line 9
def self.find_store(slug)
  response = Faraday.get("http://www.milehighbuzz.co/api/v1/stores/#{slug}")
  JSON.parse(response.body)
end