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
.configuration ⇒ Object
Returns the value of attribute configuration.
3
4
5
|
# File 'lib/untappd/config.rb', line 3
def configuration
@configuration
end
|
Class Method Details
.config ⇒ Object
5
6
7
|
# File 'lib/untappd/config.rb', line 5
def config
self.configuration ||= Untappd::Configuration.new
end
|
13
14
15
|
# File 'lib/untappd/config.rb', line 13
def configure
yield(config)
end
|
.reset_configuration ⇒ Object
9
10
11
|
# File 'lib/untappd/config.rb', line 9
def reset_configuration
self.configuration = Untappd::Configuration.new
end
|