Class: Glyr::SimilarArtist
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ SimilarArtist
constructor
A new instance of SimilarArtist.
Methods inherited from Result
#clone, copy, #data, finalizer, #md5, #rating, #rating=, #source, #to_native, #type, wrap
Constructor Details
#initialize ⇒ SimilarArtist
Returns a new instance of SimilarArtist.
181 182 183 184 185 |
# File 'lib/glyr/results.rb', line 181 def initialize (*) super @name, _, @url = data.lines.map(&:chomp) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
179 180 181 |
# File 'lib/glyr/results.rb', line 179 def name @name end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
179 180 181 |
# File 'lib/glyr/results.rb', line 179 def url @url end |