Class: AudioAddict::Commands::VoteCmd
- Defined in:
- lib/audio_addict/commands/vote.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
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/audio_addict/commands/vote.rb', line 13 def run(args) needs :network, :channel, :session_key prompt_style = args['--all'] ? :menu : :simple NowCmd.new.run args puts "" answer = get_user_vote style: prompt_style unless answer == :cancel say "Voting... " current_channel.vote answer resay "!txtgrn!Voted" end end |