Class: Twilio::REST::Client::Messages
- Inherits:
-
Object
- Object
- Twilio::REST::Client::Messages
- Includes:
- SmsSpec::Helpers
- Defined in:
- lib/sms_spec/drivers/twilio-ruby.rb
Instance Method Summary collapse
Methods included from SmsSpec::Helpers
#clkatel_message, #twiml_message
Instance Method Details
#create(opts = {}) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/sms_spec/drivers/twilio-ruby.rb', line 12 def create(opts={}) to = opts[:to] body = opts[:body] from = opts[:from] SmsSpec::Message.new(:number => to, :from => from, :body => body) end |