Class: AudioAddict::Commands::HistoryCmd
- Defined in:
- lib/audio_addict/commands/history.rb
Instance Method Summary collapse
Methods inherited from Base
#current_channel, #current_network, #needs, #prompt, #radio, #require_premium_account
Instance Method Details
#run ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/audio_addict/commands/history.rb', line 11 def run needs :network, :channel say "!undgrn!#{radio.name} > #{current_channel.name}" say '' tracks.each do |track| say "!txtgrn! #{track.artist.rjust max_artist_len}!txtrst! : !txtblu!#{track.title}" end end |