Class: Glyr::SimilarSong

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

#initializeSimilarSong

Returns a new instance of SimilarSong.



102
103
104
105
106
# File 'lib/glyr/result.rb', line 102

def initialize (*)
	super

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

Instance Attribute Details

#artistObject (readonly)

Returns the value of attribute artist.



100
101
102
# File 'lib/glyr/result.rb', line 100

def artist
  @artist
end

#titleObject (readonly)

Returns the value of attribute title.



100
101
102
# File 'lib/glyr/result.rb', line 100

def title
  @title
end

#urlObject (readonly)

Returns the value of attribute url.



100
101
102
# File 'lib/glyr/result.rb', line 100

def url
  @url
end