Class: Doorkeeper::Request::Strategy
- Inherits:
-
Object
- Object
- Doorkeeper::Request::Strategy
- Defined in:
- lib/doorkeeper/request/strategy.rb
Direct Known Subclasses
AuthorizationCode, ClientCredentials, Code, Password, RefreshToken, Token
Instance Attribute Summary collapse
-
#server ⇒ Object
readonly
Returns the value of attribute server.
Instance Method Summary collapse
-
#initialize(server) ⇒ Strategy
constructor
A new instance of Strategy.
- #request ⇒ Object
Constructor Details
#initialize(server) ⇒ Strategy
Returns a new instance of Strategy.
10 11 12 |
# File 'lib/doorkeeper/request/strategy.rb', line 10 def initialize(server) @server = server end |
Instance Attribute Details
#server ⇒ Object (readonly)
Returns the value of attribute server.
6 7 8 |
# File 'lib/doorkeeper/request/strategy.rb', line 6 def server @server end |
Instance Method Details
#request ⇒ Object
14 15 16 |
# File 'lib/doorkeeper/request/strategy.rb', line 14 def request raise NotImplementedError, "request strategies must define #request" end |