Class: Siilar::Struct::Suggestion
- Defined in:
- lib/siilar/struct/suggestion.rb
Instance Attribute Summary collapse
-
#albums ⇒ Object
Returns the value of attribute albums.
-
#artists ⇒ Object
Returns the value of attribute artists.
-
#similar_artists ⇒ Object
Returns the value of attribute similar_artists.
-
#similar_tracks ⇒ Object
Returns the value of attribute similar_tracks.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Siilar::Struct::Base
Instance Attribute Details
#albums ⇒ Object
Returns the value of attribute albums.
5 6 7 |
# File 'lib/siilar/struct/suggestion.rb', line 5 def albums @albums end |
#artists ⇒ Object
Returns the value of attribute artists.
5 6 7 |
# File 'lib/siilar/struct/suggestion.rb', line 5 def artists @artists end |
#similar_artists ⇒ Object
Returns the value of attribute similar_artists.
5 6 7 |
# File 'lib/siilar/struct/suggestion.rb', line 5 def similar_artists @similar_artists end |
#similar_tracks ⇒ Object
Returns the value of attribute similar_tracks.
5 6 7 |
# File 'lib/siilar/struct/suggestion.rb', line 5 def similar_tracks @similar_tracks end |
Instance Method Details
#tags ⇒ Object
7 8 9 |
# File 'lib/siilar/struct/suggestion.rb', line 7 def @tags ||= [] end |
#tags=(attrs) ⇒ Object
11 12 13 14 15 |
# File 'lib/siilar/struct/suggestion.rb', line 11 def (attrs) if attrs @tags = attrs.map { |tag| Struct::Tag.new(tag) } end end |
#tracks ⇒ Object
17 18 19 |
# File 'lib/siilar/struct/suggestion.rb', line 17 def tracks @tracks ||= [] end |