Class: LastfmPathFinder::Settings

Inherits:
Settingslogic
  • Object
show all
Defined in:
lib/lastfm_path_finder/settings.rb

Class Method Summary collapse

Class Method Details

.lastfm_apiObject



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_connectionObject



12
13
14
# File 'lib/lastfm_path_finder/settings.rb', line 12

def self.redis_connection
  Redis.current ||= Redis.new self["redis"]
end