Class: Voicemaker::Commands::VoicesCommand

Inherits:
Base
  • Object
show all
Defined in:
lib/voicemaker/commands/voices_command.rb

Instance Method Summary collapse

Methods inherited from Base

api_environment

Instance Method Details

#runObject



22
23
24
25
26
# File 'lib/voicemaker/commands/voices_command.rb', line 22

def run
  result = voices.search *args['SEARCH']
  result['count'] = result.count if args['--count'] and args['--verbose']
  send_output result
end