Skip to content

Commit 43b39fd

Browse files
author
Dorian Marié
committed
start making prettier ruby code
1 parent 165e47b commit 43b39fd

File tree

9 files changed

+5
-10
lines changed

9 files changed

+5
-10
lines changed

monitor/alerts/instance-get-example/instance-get-example.4.x.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# Get twilio-ruby from twilio.com/docs/ruby/install
2-
require 'rubygems' # This line not needed for ruby > 1.8
32
require 'twilio-ruby'
43

54
# Get your Account Sid and Auth Token from twilio.com/user/account
65
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
76
auth_token = 'your_auth_token'
8-
@client = Twilio::REST::MonitorClient.new account_sid, auth_token
7+
@client = Twilio::REST::MonitorClient.new(account_sid, auth_token)
98

109
# Get an object from its sid. If you do not have a sid,
1110
# check out the list resource examples on this page

monitor/alerts/instance-get-example/instance-get-example.5.x.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rubygems' # not necessary with ruby 1.9 but included for completeness
21
require 'twilio-ruby'
32

43
# put your own credentials here

monitor/events/instance-get-example-phone-number/instance-get-example-phone-number.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Get your Account Sid and Auth Token from twilio.com/user/account
55
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
66
auth_token = 'your_auth_token'
7-
@client = Twilio::REST::MonitorClient.new account_sid, auth_token
7+
@client = Twilio::REST::MonitorClient.new(account_sid, auth_token)
88

99
event = @client.events.get('AE21f24380625e4aa4abec76e39b14458d')
1010

monitor/events/instance-get-example-phone-number/instance-get-example-phone-number.5.x.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rubygems' # not necessary with ruby 1.9 but included for completeness
21
require 'twilio-ruby'
32

43
# put your own credentials here

monitor/events/list-get-example-date-filter/list-get-example-date-filter.4.x.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
# Get your Account Sid and Auth Token from twilio.com/user/account
55
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
66
auth_token = 'your_auth_token'
7-
@client = Twilio::REST::MonitorClient.new account_sid, auth_token
7+
@client = Twilio::REST::MonitorClient.new(account_sid, auth_token)
88

99
@params = {
1010
start_date: '2015-03-01T00:00:00Z',
1111
end_date: '2015-04-01T00:00:00Z'
1212
}
13+
1314
@client.events.list(@params).each do |e|
1415
puts e.description
1516
end

monitor/events/list-get-example-date-filter/list-get-example-date-filter.5.x.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rubygems' # not necessary with ruby 1.9 but included for completeness
21
require 'twilio-ruby'
32

43
# put your own credentials here

monitor/events/list-get-example-resourcesid-filter/list-get-example-resourcesid-filter.5.x.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rubygems' # not necessary with ruby 1.9 but included for completeness
21
require 'twilio-ruby'
32

43
# put your own credentials here

monitor/events/list-get-example-sourceipaddress-filter/list-get-example-sourceipaddress-filter.4.x.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Get your Account Sid and Auth Token from twilio.com/user/account
55
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
66
auth_token = 'your_auth_token'
7-
@client = Twilio::REST::MonitorClient.new account_sid, auth_token
7+
@client = Twilio::REST::MonitorClient.new(account_sid, auth_token)
88

99
@params = {
1010
source_ip_address: '104.14.155.29',

monitor/events/list-get-example-sourceipaddress-filter/list-get-example-sourceipaddress-filter.5.x.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'rubygems' # not necessary with ruby 1.9 but included for completeness
21
require 'twilio-ruby'
32

43
# put your own credentials here

0 commit comments

Comments
 (0)