X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli.rb/blobdiff_plain/823e558b5cd2ec219d0fc7226c54f2ee7ad807d2..143d7aad53cdb6e15f17ef7d1a98981dac7140da:/doc/Lyricli/Lyricli.html diff --git a/doc/Lyricli/Lyricli.html b/doc/Lyricli/Lyricli.html index 6d8ed13..60c3a94 100644 --- a/doc/Lyricli/Lyricli.html +++ b/doc/Lyricli/Lyricli.html @@ -6,7 +6,7 @@
+This class has the basic logic for extracting the lyrics and controlling +the application +
++Exits with error when there is an empty field from the current track. +
++Raises an InvalidLyricsException which means we did not get any valid +artist/song from any of the sources. +
++Extracts the current track, validates it and requests the lyrics from our +LyricsEngine. +
+-A new instance of Lyricli. +Constructor, initializes `@source_manager`.
+Set the `@current_track` instance variable by asking the SourceManager for +its current track. +
+-A new instance of Lyricli +Constructor, initializes `@source_manager`
@@ -262,12 +290,12 @@ A new instance of Lyricli-36 -37 -38+8 +9 +10
# File 'lib/lyricli.rb', line 36 +# File 'lib/lyricli/lyricli.rb', line 8 def initialize @source_manager = SourceManager.new @@ -293,19 +321,31 @@ A new instance of Lyricli -
-61 -62 -63 -64+44 +45 +46 +47 |
- # File 'lib/lyricli.rb', line 61 +# File 'lib/lyricli/lyricli.rb', line 44 def check_params self.exit_with_error if @current_track[:artist].nil? or @current_track[:artist].empty? @@ -325,21 +365,53 @@ A new instance of Lyricli -
|