Module: Untappd

Defined in:
lib/untappd.rb,
lib/untappd/base.rb,
lib/untappd/beer.rb,
lib/untappd/user.rb,
lib/untappd/oauth.rb,
lib/untappd/venue.rb,
lib/untappd/config.rb,
lib/untappd/config.rb,
lib/untappd/brewery.rb,
lib/untappd/checkin.rb,
lib/untappd/version.rb

Defined Under Namespace

Classes: Base, Beer, Brewery, Checkin, Configuration, OAuth, User, Venue

Constant Summary collapse

VERSION =
"4.0.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



3
4
5
# File 'lib/untappd/config.rb', line 3

def configuration
  @configuration
end

Class Method Details

.configObject



5
6
7
# File 'lib/untappd/config.rb', line 5

def config
  self.configuration ||= Untappd::Configuration.new
end

.configure {|config| ... } ⇒ Object

Yields:



13
14
15
# File 'lib/untappd/config.rb', line 13

def configure
  yield(config)
end

.reset_configurationObject



9
10
11
# File 'lib/untappd/config.rb', line 9

def reset_configuration
  self.configuration = Untappd::Configuration.new
end