Class: Nugz::Stores
- Inherits:
-
Object
- Object
- Nugz::Stores
- Defined in:
- lib/nugz/stores.rb
Class Method Summary collapse
Class Method Details
.all ⇒ Object
4 5 6 7 |
# 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) ⇒ Object
9 10 11 12 |
# 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 |