module Beerbelly::Client::Beer
Public Instance Methods
beer(id, options={})
click to toggle source
# File lib/beerbelly/client/beer.rb, line 10 def beer(id, options={}) respond_with_resource get_beer(id, options), 'beer' end
beers(options={})
click to toggle source
# File lib/beerbelly/client/beer.rb, line 6 def beers(options={}) respond_with_resource get_beers(options), 'beers' end
Private Instance Methods
get_beer(id, options={})
click to toggle source
# File lib/beerbelly/client/beer.rb, line 20 def get_beer(id, options={}) get_resource "beers/#{id}", options end
get_beers(options={})
click to toggle source
# File lib/beerbelly/client/beer.rb, line 16 def get_beers(options={}) get_resource 'beers', options end