X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli.rb/blobdiff_plain/823e558b5cd2ec219d0fc7226c54f2ee7ad807d2..refs/heads/main:/doc/Lyricli/Lyricli.html?ds=inline diff --git a/doc/Lyricli/Lyricli.html b/doc/Lyricli/Lyricli.html index 6d8ed13..e3accb5 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 InvalidLyricsError 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,21 +321,35 @@ A new instance of Lyricli -
-61 -62 -63 -64+49 +50 +51 +52 +53 |
- # File 'lib/lyricli.rb', line 61 +# File 'lib/lyricli/lyricli.rb', line 49 def check_params + self.exit_with_error unless @current_track self.exit_with_error if @current_track[:artist].nil? or @current_track[:artist].empty? self.exit_with_error if @current_track[:song].nil? or @current_track[:song].empty? end@@ -325,21 +367,53 @@ A new instance of Lyricli -
|