Class: MusixMatch::InstantLyrics::Result
- Inherits:
-
Object
- Object
- MusixMatch::InstantLyrics::Result
- Defined in:
- lib/musix_match/instant_lyrics.rb
Instance Attribute Summary collapse
-
#lyrics ⇒ Object
readonly
Returns the value of attribute lyrics.
Instance Method Summary collapse
- #found? ⇒ Boolean
-
#initialize(lyrics) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(lyrics) ⇒ Result
Returns a new instance of Result.
6 7 8 |
# File 'lib/musix_match/instant_lyrics.rb', line 6 def initialize(lyrics) @lyrics = lyrics end |
Instance Attribute Details
#lyrics ⇒ Object (readonly)
Returns the value of attribute lyrics.
4 5 6 |
# File 'lib/musix_match/instant_lyrics.rb', line 4 def lyrics @lyrics end |
Instance Method Details
#found? ⇒ Boolean
10 11 12 |
# File 'lib/musix_match/instant_lyrics.rb', line 10 def found? @lyrics.is_a?(MusixMatch::Models::Lyrics) end |