Class: Spotify::Search
- Inherits:
-
Object
- Object
- Spotify::Search
- Defined in:
- lib/spotifysearch/search.rb
Overview
Create a Song object
Instance Attribute Summary collapse
-
#songs ⇒ Object
Returns the value of attribute songs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(search_data) ⇒ Search
constructor
A new instance of Search.
Constructor Details
Instance Attribute Details
#songs ⇒ Object
Returns the value of attribute songs.
7 8 9 |
# File 'lib/spotifysearch/search.rb', line 7 def songs @songs end |
Class Method Details
.find(input) ⇒ Object
16 17 18 19 |
# File 'lib/spotifysearch/search.rb', line 16 def self.find(input) search_data = Spotify::SpAPI.search_feed(input) new(search_data).songs end |