Module: Bartender

Defined in:
lib/bartender.rb,
lib/bartender/beer.rb,
lib/bartender/request.rb,
lib/bartender/brewery.rb,
lib/bartender/configuration.rb

Overview

Top-level interface to Bartender.

Defined Under Namespace

Classes: Beer, Brewery, Configuration, Request

Constant Summary collapse

VERSION =

Bartender version.

"0.7.0"
API_VERSION =

Version of the Open Beer Database API.

"1"

Class Method Summary collapse

Class Method Details

.configurationConfiguration


31
32
33
# File 'lib/bartender.rb', line 31

def self.configuration
  @@configuration ||= Configuration.new
end

.configure {|Configuration| ... } ⇒ Object

Call this method to modify defaults in your initializers.

Examples:

Bartender.configure do |configuration|
  configuration.http_open_timeout = 1
  configuration.http_read_timeout = 1
end

Yields:


26
27
28
# File 'lib/bartender.rb', line 26

def self.configure
  yield(configuration)
end