Skip to content
This repository was archived by the owner on May 25, 2021. It is now read-only.

Commit 12d9d22

Browse files
alvinsightsferik
authored andcommitted
Added correct documentation for proxy setting sferik#744 (sferik#854)
1 parent e9e41b0 commit 12d9d22

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

examples/Configuration.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,11 @@ If you'd like to connect via a proxy, a proxy can be configured by passing a
131131
`Hash` to your configuration:
132132

133133
```ruby
134-
proxy = {
135-
host: '127.0.0.1',
136-
port: 3328,
137-
username: 'proxy_username',
138-
password: 'proxy_password',
139-
}
134+
proxy: {
135+
uri: Addressable::URI.parse("http://proxy_host:proxy_port"),
136+
username: "proxy_username",
137+
password: "proxy_password"
138+
}
140139

141140
client = Twitter::REST::Client.new do |config|
142141
config.consumer_key = "YOUR_CONSUMER_KEY"

0 commit comments

Comments
 (0)