Class: LastfmPathFinder::Settings
- Inherits:
-
Settingslogic
- Object
- Settingslogic
- LastfmPathFinder::Settings
- Defined in:
- lib/lastfm_path_finder/settings.rb
Class Method Summary collapse
Class Method Details
.lastfm_api ⇒ Object
8 9 10 |
# File 'lib/lastfm_path_finder/settings.rb', line 8 def self.lastfm_api @@lastfm ||= Lastfm.new(self["lastfm"]["api_key"], self["lastfm"]["api_secret"]) end |
.redis_connection ⇒ Object
12 13 14 |
# File 'lib/lastfm_path_finder/settings.rb', line 12 def self.redis_connection Redis.current ||= Redis.new self["redis"] end |