README.md in twilio-ruby-5.0.0.rc25 vs README.md in twilio-ruby-5.0.0.rc26
- old
+ new
@@ -9,17 +9,17 @@
## Installation
To install using [Bundler][bundler] grab the latest stable version:
```ruby
-gem 'twilio-ruby', '~> 5.0.0.rc25'
+gem 'twilio-ruby', '~> 5.0.0.rc26'
```
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
```bash
-gem install twilio-ruby -v 5.0.0.rc25
+gem install twilio-ruby -v 5.0.0.rc26
```
To build and install the development branch yourself from the latest source:
```bash
@@ -91,11 +91,11 @@
## Getting Started With Client Capability Tokens
If you just need to generate a Capability Token for use with Twilio Client, you
can do this:
-``` ruby
+```ruby
require 'twilio-ruby'
# put your own account credentials here:
account_sid = 'ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
@@ -122,30 +122,30 @@
## Getting Started With TwiML
TwiML support is based on the [Builder][builder] library. You can construct a
TwiML response like this:
-``` ruby
+```ruby
require 'twilio-ruby'
response = Twilio::TwiML::VoiceResponse.new do |r|
r.say('hello there', voice: 'alice')
- r.dial('', caller_id: '+14159992222') do |d|
+ r.dial(caller_id: '+14159992222') do |d|
d.client 'jenny'
end
end
# print the result
-puts response.to_s()
+puts response.to_s
```
This will print the following (except for the whitespace):
```xml
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="alice">hello there</Say>
- <Dial callerid="+14159992222">
+ <Dial callerId="+14159992222">
<Client>jenny</Client>
</Dial>
</Response>
```