Class: Doorkeeper::Request::Strategy

Inherits:
Object
  • Object
show all
Defined in:
lib/doorkeeper/request/strategy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#serverObject (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

#requestObject

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/doorkeeper/request/strategy.rb', line 14

def request
  raise NotImplementedError, "request strategies must define #request"
end