Class: MusixMatch::InstantLyrics::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/musix_match/instant_lyrics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#lyricsObject (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

Returns:

  • (Boolean)


10
11
12
# File 'lib/musix_match/instant_lyrics.rb', line 10

def found?
  @lyrics.is_a?(MusixMatch::Models::Lyrics)      
end