Class: Glyr::SimilarSong
Instance Attribute Summary collapse
-
#artist ⇒ Object
readonly
Returns the value of attribute artist.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ SimilarSong
constructor
A new instance of SimilarSong.
Methods inherited from Result
#clone, copy, #data, finalizer, #md5, #rating, #rating=, #source, #to_native, #type, wrap
Constructor Details
#initialize ⇒ SimilarSong
Returns a new instance of SimilarSong.
192 193 194 195 196 |
# File 'lib/glyr/results.rb', line 192 def initialize (*) super @title, @artist, _, @url = data.lines.map(&:chomp) end |
Instance Attribute Details
#artist ⇒ Object (readonly)
Returns the value of attribute artist.
190 191 192 |
# File 'lib/glyr/results.rb', line 190 def artist @artist end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
190 191 192 |
# File 'lib/glyr/results.rb', line 190 def title @title end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
190 191 192 |
# File 'lib/glyr/results.rb', line 190 def url @url end |