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(args) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/audio_addict/commands/history.rb', line 9 def run(args) needs :network, :channel say "!undgrn!#{radio.name} > #{current_channel.name}" say '' tracks.each do |channel| say "!txtgrn! #{channel.artist.rjust max_artist_len}!txtrst! : !txtblu!#{channel.title}" end end |