Class: Glyr::SimilarSong
- Inherits:
-
Result::Data
- Object
- Result::Data
- Glyr::SimilarSong
- Defined in:
- lib/glyr/result.rb
Instance Attribute Summary collapse
-
#artist ⇒ Object
readonly
Returns the value of attribute artist.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Attributes inherited from Result::Data
Instance Method Summary collapse
-
#initialize ⇒ SimilarSong
constructor
A new instance of SimilarSong.
Methods inherited from Result::Data
#provider, #source, #to_native, wrap
Constructor Details
#initialize ⇒ SimilarSong
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
#artist ⇒ Object (readonly)
Returns the value of attribute artist.
100 101 102 |
# File 'lib/glyr/result.rb', line 100 def artist @artist end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
100 101 102 |
# File 'lib/glyr/result.rb', line 100 def title @title end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
100 101 102 |
# File 'lib/glyr/result.rb', line 100 def url @url end |