README.md in twilio-ruby-3.12.3 vs README.md in twilio-ruby-3.13.0

- old
+ new

@@ -55,35 +55,35 @@ ### Send an SMS ``` ruby @client.messages.create( - :from => '+14159341234', - :to => '+16105557069', - :body => 'Hey there!' + from: '+14159341234', + to: '+16105557069', + body: 'Hey there!' ) ``` ### Send an MMS ``` ruby @client.messages.create( - :from => '+14159341234', - :to => '+16105557069', - :body => 'Hey there!', - :media_url => 'http://example.com/smileyface.jpg', + from: '+14159341234', + to: '+16105557069', + body: 'Hey there!', + media_url: 'http://example.com/smileyface.jpg' ) ``` ### Do Some Stuff With Calls ``` ruby # make a new outgoing call @call = @client.calls.create( - :from => '+14159341234', - :to => '+18004567890', - :url => 'http://example.com/call-handler', + from: '+14159341234', + to: '+18004567890', + url: 'http://example.com/call-handler' ) # hangup a ringing call, but don't touch it if it's connected @call.cancel @@ -107,17 +107,17 @@ ### Buy a Phone Number ``` ruby # print some available numbers @numbers = @client.available_phone_numbers.get('US').local.list( - :contains => 'AWESOME' + contains: 'AWESOME' ) @numbers.each {|num| puts num.phone_number} # buy the first one @number = @numbers[0].phone_number -@client.incoming_phone_numbers.create(:phone_number => @number) +@client.incoming_phone_numbers.create(phone_number: @number) ``` ## Getting Started With Client Capability Tokens If you just need to generate a Capability Token for use with Twilio Client, you @@ -156,11 +156,11 @@ require 'rubygems' # not necessary with ruby 1.9 but included for completeness require 'twilio-ruby' # build up a response response = Twilio::TwiML::Response.new do |r| - r.Say 'hello there', :voice => 'alice' - r.Dial :callerId => '+14159992222' do |d| + r.Say 'hello there', voice: 'alice' + r.Dial callerId: '+14159992222' do |d| d.Client 'jenny' end end # print the result