class Lyricli::Sources::Arguments

The arguments source. This one is special since it expects two arguments. It is treated specially by the SourceManager.

Attributes

name[RW]

Public Class Methods

enable() click to toggle source

The enable method should run all of the tasks needed to validate the source. In the case of Rdio it has to authenticate with OAuth.

# File lib/lyricli/sources/arguments.rb, line 15
def self.enable
  # Nothing to do.
end
new() click to toggle source

Instantiates everything it needs to run.

# File lib/lyricli/sources/arguments.rb, line 20
def initialize
  # Nothing to do.
end
reset() click to toggle source

The reset method resets any configurations it may have

# File lib/lyricli/sources/arguments.rb, line 34
def self.reset
  # Reset Code
end

Public Instance Methods

current_track() click to toggle source

The current_track method should return the name of the current artist and song. @return [Hash] A hash containing the current `:song` and `:artist`.

# File lib/lyricli/sources/arguments.rb, line 27
def current_track
  artist = ARGV[0]
  song = ARGV[1]
  {:artist => artist, :song => song}
end