Module: TextSpec::Helpers

Extended by:
Forwardable
Included in:
Twilio::REST::Client::Messages
Defined in:
lib/text_spec/helpers.rb

Instance Method Summary collapse

Instance Method Details

#twiml_message(from, body, opts = {}) ⇒ Object



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/text_spec/helpers.rb', line 17

def twiml_message(from, body, opts={})
  base_options = {
    "AccountSid"=>"1234567812345678",
    "Body"=> body,
    "ToZip"=>"94949",
    "FromState"=>"MI",
    "ToCity"=>"NOVATO",
    "SmsSid"=>"1234567812345678",
    "ToState"=>"CA",
    "To"=>"8155552671",
    "ToCountry"=>"US",
    "FromCountry"=>"US",
    "SmsMessageSid"=>"123456712345671234567",
    "ApiVersion"=>"2008-08-01",
    "FromCity"=>"GRAND RAPIDS",
    "SmsStatus"=>"received",
    "From"=> from,
    "FromZip"=>"49507"
  }

  base_options.merge! opts
end