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

Version Path
punky_brewster-1.3.2 lib/punky_brewster/beer_list_request.rb
punky_brewster-1.3.1 lib/punky_brewster/beer_list_request.rb
punky_brewster-1.3.0 lib/punky_brewster/beer_list_request.rb
punky_brewster-1.2.0 lib/punky_brewster/beer_list_request.rb
punky_brewster-1.1.0 lib/punky_brewster/beer_list_request.rb
punky_brewster-1.0.1 lib/punky_brewster/beer_list_request.rb