Class: Beerbelly::Configuration
- Inherits:
-
Object
- Object
- Beerbelly::Configuration
- Defined in:
- lib/beerbelly/configuration.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
Instance Method Summary collapse
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
5 6 7 |
# File 'lib/beerbelly/configuration.rb', line 5 def access_token @access_token end |
Instance Method Details
#base_url ⇒ Object
7 8 9 |
# File 'lib/beerbelly/configuration.rb', line 7 def base_url "http://api.openbeerdatabase.com/#{current_version}" end |
#to_hash ⇒ Object
11 12 13 |
# File 'lib/beerbelly/configuration.rb', line 11 def to_hash { token: access_token } end |