Sha256: 4c0b4fb56a4a9d42b607ba64282cf368c04ed9d9ccd56449c67b781898ac9ddc
Contents?: true
Size: 283 Bytes
Versions: 6
Compression:
Stored size: 283 Bytes
Contents
require "net/http" module PunkyBrewster class BeerListRequest URL = "http://www.punkybrewster.co.nz" def response raw_response = Net::HTTP.get_response(URI(URL)) BeerListResponse.new(raw_response) end def beers response.beers end end end
Version data entries
6 entries across 6 versions & 1 rubygems