Class: Beerbelly::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/beerbelly/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_tokenObject

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_urlObject



7
8
9
# File 'lib/beerbelly/configuration.rb', line 7

def base_url
  "http://api.openbeerdatabase.com/#{current_version}"
end

#to_hashObject



11
12
13
# File 'lib/beerbelly/configuration.rb', line 11

def to_hash
  { token: access_token }
end