Class: AudioAddict::Commands::SetCmd
- Defined in:
- lib/audio_addict/commands/set.rb
Instance Method Summary collapse
Methods inherited from Base
#current_channel, #current_network, #needs, #prompt, #radio, #require_premium_account
Instance Method Details
#run ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/audio_addict/commands/set.rb', line 23 def run channel = args['CHANNEL'] network = args['NETWORK'] full_set = (channel and network) || !(channel or network) if full_set set_both channel, network else set_channel channel end end |