class Nugz::Reviews
Public Class Methods
all()
click to toggle source
# File lib/nugz/reviews.rb, line 3 def self.all response = Faraday.get('http://www.milehighbuzz.co/api/v1/reviews') JSON.parse(response.body) end
for_store(slug)
click to toggle source
# File lib/nugz/reviews.rb, line 8 def self.for_store(slug) response = Faraday.get("http://www.milehighbuzz.co/api/v1/reviews/store/#{slug}") JSON.parse(response.body) end