Class: Doorkeeper::OAuth::BaseResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/doorkeeper/oauth/base_response.rb

Direct Known Subclasses

CodeResponse, ErrorResponse

Instance Method Summary collapse

Instance Method Details

#bodyObject



6
7
8
# File 'lib/doorkeeper/oauth/base_response.rb', line 6

def body
  {}
end

#descriptionObject



10
11
12
# File 'lib/doorkeeper/oauth/base_response.rb', line 10

def description
  ""
end

#headersObject



14
15
16
# File 'lib/doorkeeper/oauth/base_response.rb', line 14

def headers
  {}
end

#redirect_uriObject



22
23
24
# File 'lib/doorkeeper/oauth/base_response.rb', line 22

def redirect_uri
  ""
end

#redirectable?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/doorkeeper/oauth/base_response.rb', line 18

def redirectable?
  false
end

#statusObject



26
27
28
# File 'lib/doorkeeper/oauth/base_response.rb', line 26

def status
  :ok
end