Class: Glyr::SimilarSong

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

#initializeSimilarSong

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

#artistObject (readonly)

Returns the value of attribute artist.



190
191
192
# File 'lib/glyr/results.rb', line 190

def artist
  @artist
end

#titleObject (readonly)

Returns the value of attribute title.



190
191
192
# File 'lib/glyr/results.rb', line 190

def title
  @title
end

#urlObject (readonly)

Returns the value of attribute url.



190
191
192
# File 'lib/glyr/results.rb', line 190

def url
  @url
end