Created
October 24, 2013 21:23
-
-
Save manleyhimself/7145283 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #-sinatra server | |
| # -spotify module | |
| # -spotify gem | |
| # -attributes and methods: search, play | |
| # -playlister object | |
| # -include/extend spotify module | |
| # -creates song objects from the spotify search data | |
| # -methods: sort, list, | |
| # -song object | |
| # -receives attributes from the spotify object (is created when the user selects a song from search query) | |
| # -attributes: song_name, artist_name, spotify_id, date_object_created, album_name | |
| # flow: | |
| # 1. opens program (CLI/web) | |
| # 2. user searches for song: playlister object search method | |
| # 3. user views search results: playlister object returns search query (result of the search method) | |
| # 4. user chooses song, song object created with choice data in playlister | |
| # 5. user views the chosen song in the playlist: return/print song info from playlister to user interface | |
| # 6. play song: playlister object check if song is first in the queue, if yes, call spotify to play | |
| # 7. view up-to-date list in playlist | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment