Class: Incognito::CLI::SMSCommand
- Inherits:
-
Thor
- Object
- Thor
- Incognito::CLI::SMSCommand
- Defined in:
- lib/incognito/cli/sms_command.rb
Instance Method Summary collapse
Instance Method Details
#message(phone_number, message) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/incognito/cli/sms_command.rb', line 5 def (phone_number, ) say "Sending `#{}` to #{phone_number}" result = sms.(to: phone_number, message: ) print_table [ [:to, result.to], [:from, result.from], [:body, result.body], [:error, "#{result.error_code}: #{result.}"], [:price, "#{result.price} #{result.price_unit}"], [:uri, result.uri], ] end |