class VinoChipper

Constants

BASE_URL

Public Class Methods

wine_list(id) click to toggle source
# File lib/vinochipper.rb, line 9
def self.wine_list(id)
  response = Net::HTTP.get_response(URI.parse(BASE_URL + 'wine-list?id=' + id.to_s))
  VCWineList.new(JSON.parse(response.body))
end