Class: Glyr::SimilarArtist

Inherits:
Result
  • Object
show all
Defined in:
lib/glyr/results.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Result

#clone, copy, #data, finalizer, #md5, #rating, #rating=, #source, #to_native, #type, wrap

Constructor Details

#initializeSimilarArtist

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

#nameObject (readonly)

Returns the value of attribute name.



179
180
181
# File 'lib/glyr/results.rb', line 179

def name
  @name
end

#urlObject (readonly)

Returns the value of attribute url.



179
180
181
# File 'lib/glyr/results.rb', line 179

def url
  @url
end