Class: Twilio::REST::Client::Messages

Inherits:
Object
  • Object
show all
Includes:
TextSpec::Helpers
Defined in:
lib/text_spec/drivers/twilio-ruby.rb

Instance Method Summary collapse

Methods included from TextSpec::Helpers

#twiml_message

Instance Method Details

#create(opts = {}) ⇒ Object



9
10
11
12
13
# File 'lib/text_spec/drivers/twilio-ruby.rb', line 9

def create(opts={})
  to = opts[:to]
  body = opts[:body]
  add_message Message.new(:number => to, :body => body)
end