Class: AudioAddict::Commands::APICmd
- Defined in:
- lib/audio_addict/commands/api.rb
Instance Method Summary collapse
Methods inherited from Base
#current_channel, #current_network, #needs, #prompt, #radio, #require_premium_account
Instance Method Details
#run ⇒ Object
17 18 19 20 21 |
# File 'lib/audio_addict/commands/api.rb', line 17 def run needs :network response = api.send(api_method, endpoint) puts response.to_yaml end |