X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli.rb/blobdiff_plain/823e558b5cd2ec219d0fc7226c54f2ee7ad807d2..5d701d44f30948d6d339a8d5806a083bdf76076d:/doc/Lyricli.html?ds=inline diff --git a/doc/Lyricli.html b/doc/Lyricli.html index 8c0685a..d757eac 100644 --- a/doc/Lyricli.html +++ b/doc/Lyricli.html @@ -6,7 +6,7 @@ Module: Lyricli - — Documentation by YARD 0.8.1 + — Documentation by YARD 0.8.2.1 @@ -80,17 +80,30 @@
Defined in:
lib/lyricli.rb,
- lib/lyricli/util.rb,
lib/lyricli/sources/rdio.rb,
lib/lyricli/lyrics_engine.rb,
lib/lyricli/configuration.rb,
lib/lyricli/source_manager.rb,
lib/lyricli/sources/arguments.rb
+ lib/lyricli/util.rb,
lib/lyricli/lyricli.rb,
lib/lyricli/sources.rb,
lib/lyricli/exceptions.rb,
lib/lyricli/sources/rdio.rb,
lib/lyricli/lyrics_engine.rb,
lib/lyricli/configuration.rb,
lib/lyricli/sources/itunes.rb,
lib/lyricli/source_manager.rb,
lib/lyricli/sources/arguments.rb
-

Defined Under Namespace

+

Overview

+
+

+The Lyricli module allows you to easily search for lyrics by looking for +song and artist data from diverse sources. +

+ + +
+
+
+ + +

Defined Under Namespace

- Modules: Sources, Util + Modules: Exceptions, Sources, Util @@ -116,7 +129,83 @@

  • - + (Object) execute + + (Object) disable(source_name) + + + + + + + + + + + + + +

    +Disables a source via the Source Manager. +

    +
    + +
  • + + +
  • + + + + (Object) enable(source_name) + + + + + + + + + + + + + +

    +Enables a source via the Source Manager. +

    +
    + +
  • + + +
  • + + + + (String) lyrics + + + + + + + + + + + + + +

    +Creates a new Lyricli instance and returns lyrics by going through the +sources. +

    +
    + +
  • + + +
  • + + + + (Object) reset(source_name) @@ -130,7 +219,60 @@ -
    +

    +Resets all configuration for a source via the Source Manager. +

    +
    + +
  • + + +
  • + + + + (String) sources + + + + + + + + + + + + + +

    +Returns a list of the available sources to enable or disable. +

    +
    + +
  • + + +
  • + + + + (String) version + + + + + + + + + + + + + +

    +Returns the version of the library. +

    +
  • @@ -145,35 +287,323 @@
    -

    +

    - + (Object) execute + + (Object) disable(source_name) -

    +
    +
    +

    +Disables a source via the Source Manager +

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +56
    +57
    +58
    +59
    +
    +
    # File 'lib/lyricli.rb', line 56
    +
    +def self.disable(source_name)
    +  source_manager = SourceManager.new
    +  source_manager.disable(source_name)
    +end
    +
    +
    + +
    +

    + + + (Object) enable(source_name) + + + + + +

    +
    +

    +Enables a source via the Source Manager +

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +50
    +51
    +52
    +53
    +
    +
    # File 'lib/lyricli.rb', line 50
    +
    +def self.enable(source_name)
    +  source_manager = SourceManager.new
    +  source_manager.enable(source_name)
    +end
    +
    +
    + +
    +

    + + + (String) lyrics + + + + + +

    +
    +

    +Creates a new Lyricli instance and returns lyrics by going through the +sources. +

    + + +
    +
    +
    + +

    Returns:

    + + +
     
     
    -29
     30
     31
    -32
    +32 +33
    -
    # File 'lib/lyricli.rb', line 29
    +      
    # File 'lib/lyricli.rb', line 30
     
    -def self.execute
    +def self.lyrics
       @lyricli = Lyricli.new
       @lyricli.get_lyrics
     end
    +
    + +
    +

    + + + (Object) reset(source_name) + + + + + +

    +
    +

    +Resets all configuration for a source via the Source Manager +

    + + +
    +
    +
    + + +
    + + + + +
    +
    +
    +
    +62
    +63
    +64
    +65
    +
    +
    # File 'lib/lyricli.rb', line 62
    +
    +def self.reset(source_name)
    +  source_manager = SourceManager.new
    +  source_manager.reset(source_name)
    +end
    +
    +
    + +
    +

    + + + (String) sources + + + + + +

    +
    +

    +Returns a list of the available sources to enable or disable +

    + + +
    +
    +
    + +

    Returns:

    + + +
    + + + + +
    +
    +
    +
    +44
    +45
    +46
    +47
    +
    +
    # File 'lib/lyricli.rb', line 44
    +
    +def self.sources
    +  source_manager = SourceManager.new
    +  source_manager.available_sources(true).join(", ")
    +end
    +
    +
    + +
    +

    + + + (String) version + + + + + +

    +
    +

    +Returns the version of the library +

    + + +
    +
    +
    + +

    Returns:

    + + +
    + + + + +
    +
    +
    +
    +37
    +38
    +39
    +
    +
    # File 'lib/lyricli.rb', line 37
    +
    +def self.version
    +  Gem.loaded_specs["lyricli"].version
    +end
    +
    @@ -181,9 +611,9 @@