Module: Kanye

Defined in:
lib/kanye.rb,
lib/kanye/page.rb,
lib/kanye/track.rb,
lib/kanye/history.rb

Defined Under Namespace

Classes: History, NoKeyError, Page, Track

Constant Summary collapse

DEFAULT_CONFIGURATION_PATH =
File.expand_path("~/.kanye_rc")
DEFAULT_DOWNLOAD_PATH =
File.expand_path("~/Music/Kanye/")
DEFAULT_DB_PATH =
File.expand_path("~/Music/Kanye/.history.db")
BASE_URL =
'h' + 'y' + 'p' + 'e' + 'm' + '.com'

Class Method Summary collapse

Class Method Details

.configObject



24
25
26
# File 'lib/kanye.rb', line 24

def config
  @@config ||= {}
end

.config=(config) ⇒ Object



28
29
30
# File 'lib/kanye.rb', line 28

def config=(config)
  @@config = config
end

.db_pathObject



20
21
22
# File 'lib/kanye.rb', line 20

def db_path
  @@db_path ||= DEFAULT_DB_PATH
end

.download_pathObject



16
17
18
# File 'lib/kanye.rb', line 16

def download_path
  @@download_path ||= DEFAULT_DOWNLOAD_PATH
end