Skip to content

Commit 2300305

Browse files
authored
signet: Add Signet::OAuth2::Client#initialize (#992)
1 parent d07edeb commit 2300305

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

gems/signet/0.19/_test/test.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,12 @@
88

99
class MyClient < Signet::OAuth2::Client
1010
end
11+
12+
client = Signet::OAuth2::Client.new({
13+
:authorization_uri => 'https://example.com/authorization',
14+
:token_credential_uri => 'https://example.com/token',
15+
:client_id => 'my_client_id',
16+
:client_secret => 'my_client_secret',
17+
:scope => 'example',
18+
:redirect_uri => 'https://example.com/oauth'
19+
})

gems/signet/0.19/signet.rbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module Signet
44

55
module OAuth2
66
class Client
7+
def initialize: (?Hash[Symbol, untyped] options) -> void
78
end
89
end
910
end

0 commit comments

Comments
 (0)