Class: Glyr::SimilarArtist

Inherits:
Result::Data show all
Defined in:
lib/glyr/result.rb

Instance Attribute Summary collapse

Attributes inherited from Result::Data

#rating, #result

Instance Method Summary collapse

Methods inherited from Result::Data

#provider, #source, #to_native, wrap

Constructor Details

#initializeSimilarArtist

Returns a new instance of SimilarArtist.



91
92
93
94
95
# File 'lib/glyr/result.rb', line 91

def initialize (*)
	super

	@name, _, @url = to_native[:data].read_string(to_native[:size]).lines.map(&:chomp)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



89
90
91
# File 'lib/glyr/result.rb', line 89

def name
  @name
end

#urlObject (readonly)

Returns the value of attribute url.



89
90
91
# File 'lib/glyr/result.rb', line 89

def url
  @url
end