Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 292 Bytes
module BreweryDB
module Resources
class Brewery < Resource
attr_reader :id
def initialize(config, options={})
@id = options[:id]
super(config)
end
def beers(params={})
get("brewery/#{id}/beers", params).data
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.