Module: LilyPlaying

Defined in:
lib/lilyplaying.rb,
lib/lilyplaying/user.rb,
lib/lilyplaying/current.rb,
lib/lilyplaying/version.rb

Defined Under Namespace

Classes: Current, User

Constant Summary collapse

DESCRIPTION =
"Outputs the currently playing rdio song to a text file for use while streaming"
VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.clientObject



14
15
16
# File 'lib/lilyplaying.rb', line 14

def self.client
  @@client ||= Rdio.new([config['consumer']['key'], config['consumer']['secret']], [config['access']['token'], config['access']['secret']])
end

.configObject



10
11
12
# File 'lib/lilyplaying.rb', line 10

def self.config
  @@config ||= YAML.safe_load_file(File.expand_path("~/.lilyplaying"))
end

.userObject



18
19
20
# File 'lib/lilyplaying.rb', line 18

def self.user
  LilyPlaying::User.new
end