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