Created
May 15, 2019 02:21
-
-
Save hfaerber/bd2dcf5c19bdd6c746291a1d571d42bc 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
Class: Playlist | |
Attributes: | |
SongAmount (integer) | |
PlayLength (float) | |
SongLength (hash) | |
PlaylistCreator (string) | |
PlaylistTitle (string) | |
SongPlays (hash) | |
Methods: | |
AverageSongLength (divides PlayLength by SongAmount) | |
AverageSongsPerHour (divides 60 by AverageSongLength) | |
AddSong (increases SongAmount, increases PlayLength, modifies SongLength) | |
RemoveSong (decreases SongAmount, decreases PlayLength, modifies SongLength) | |
ChangePlaylistTitle (modifies PlaylistTitle) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment