Module: LilyPlaying
- Defined in:
- lib/lilyplaying.rb,
lib/lilyplaying/user.rb,
lib/lilyplaying/current.rb,
lib/lilyplaying/version.rb
Defined Under Namespace
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
.client ⇒ Object
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 |
.config ⇒ Object
10 11 12 |
# File 'lib/lilyplaying.rb', line 10 def self.config @@config ||= YAML.safe_load_file(File.("~/.lilyplaying")) end |
.user ⇒ Object
18 19 20 |
# File 'lib/lilyplaying.rb', line 18 def self.user ::User.new end |