Module: Walkman::Commands::Queueing

Defined in:
lib/walkman/commands/queueing.rb

Class Method Summary collapse

Class Method Details

.artist(artist) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/walkman/commands/queueing.rb', line 4

def self.artist(artist)
  playlist = self.queue("artist", artist: artist)

  if playlist.size > 0
    "♫ Playing songs by #{artist.titleize}"
  else
    "That artist couldn't be queued"
  end
end

.artist_radio(artist) ⇒ Object



14
15
16
17
18
19
20
21
22
# File 'lib/walkman/commands/queueing.rb', line 14

def self.artist_radio(artist)
  playlist = self.queue("artist-radio", artist: artist)

  if playlist.size > 0
    "♫ Playing music like #{artist.titleize}"
  else
    "Music like that artist couldn't be queued"
  end
end