Class: AiNotoCLI

Inherits:
Thor
  • Object
show all
Includes:
AiNoto
Defined in:
lib/ai_noto_cli.rb

Overview

Command line suite

Available commands: new

Constant Summary

Constants included from AiNoto

AiNoto::VERSION

Instance Method Summary collapse

Methods included from AiNoto

config, config_file, from_number, send, to_number, twilio_client, twilio_credentials

Instance Method Details

#new(message) ⇒ Object



12
13
14
15
# File 'lib/ai_noto_cli.rb', line 12

def new(message)
  puts "Sending a message to #{AiNoto.to_number}"
  AiNoto.send(message)
end