Class: MusixMatch::LyricsSearchResult
- Inherits:
-
Object
- Object
- MusixMatch::LyricsSearchResult
- Defined in:
- lib/musix_match/lyrics_search_result.rb
Instance Attribute Summary collapse
-
#available ⇒ Object
readonly
Returns the value of attribute available.
-
#execute_time ⇒ Object
readonly
Returns the value of attribute execute_time.
-
#lyrics_list ⇒ Object
readonly
Returns the value of attribute lyrics_list.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(response) ⇒ LyricsSearchResult
constructor
A new instance of LyricsSearchResult.
Constructor Details
#initialize(response) ⇒ LyricsSearchResult
Returns a new instance of LyricsSearchResult.
5 6 7 8 9 |
# File 'lib/musix_match/lyrics_search_result.rb', line 5 def initialize(response) @response = response @lyrics_list = [] parse_response(response) end |
Instance Attribute Details
#available ⇒ Object (readonly)
Returns the value of attribute available.
3 4 5 |
# File 'lib/musix_match/lyrics_search_result.rb', line 3 def available @available end |
#execute_time ⇒ Object (readonly)
Returns the value of attribute execute_time.
3 4 5 |
# File 'lib/musix_match/lyrics_search_result.rb', line 3 def execute_time @execute_time end |
#lyrics_list ⇒ Object (readonly)
Returns the value of attribute lyrics_list.
3 4 5 |
# File 'lib/musix_match/lyrics_search_result.rb', line 3 def lyrics_list @lyrics_list end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/musix_match/lyrics_search_result.rb', line 3 def response @response end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
3 4 5 |
# File 'lib/musix_match/lyrics_search_result.rb', line 3 def status_code @status_code end |
Instance Method Details
#each ⇒ Object
11 12 13 14 15 |
# File 'lib/musix_match/lyrics_search_result.rb', line 11 def each @lyrics_list.each do |lyrics| yield lyrics end end |