class Spotify::Search
Create a Song
object
Attributes
songs[RW]
Public Class Methods
find(input)
click to toggle source
# File lib/spotifysearch/search.rb, line 16 def self.find(input) search_data = Spotify::SpAPI.search_feed(input) new(search_data).songs end
new(search_data)
click to toggle source
# File lib/spotifysearch/search.rb, line 9 def initialize(search_data) @songs = {} search_data.each do |key, value| @songs[key] = Spotify::Song.new(data: value) end end