class AiNoto::Message
Attributes
contents[RW]
recipient[RW]
twilio_client[RW]
Public Class Methods
new(contents, twilio_client, recipient)
click to toggle source
# File lib/ai_noto.rb, line 44 def initialize(contents, twilio_client, recipient) @contents = contents @twilio_client = twilio_client @recipient = recipient end
Public Instance Methods
send_sms!()
click to toggle source
# File lib/ai_noto.rb, line 50 def send_sms! twilio_client.api.account.messages.create(from: AiNoto.from_number, to: AiNoto.to_number(recipient), body: contents) end