Class: OAuth2::Strategy::Base
- Inherits:
-
Object
- Object
- OAuth2::Strategy::Base
- Defined in:
- lib/oauth2/strategy/base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#client_params ⇒ Hash
The OAuth client_id and client_secret.
-
#initialize(client) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(client) ⇒ Base
Returns a new instance of Base.
4 5 6 |
# File 'lib/oauth2/strategy/base.rb', line 4 def initialize(client) @client = client end |
Instance Method Details
#client_params ⇒ Hash
The OAuth client_id and client_secret
11 12 13 |
# File 'lib/oauth2/strategy/base.rb', line 11 def client_params {'client_id' => @client.id, 'client_secret' => @client.secret} end |