Class: AudioAddict::Commands::APICmd

Inherits:
Base
  • Object
show all
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

#runObject



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