Class: OAuth2::ResponseString

Inherits:
String
  • Object
show all
Includes:
ResponseObject
Defined in:
lib/oauth2/response_object.rb

Overview

This special String class is returned from HTTP requests and contains the original full response along with convenience methods for accessing the HTTP status code and headers. It is returned from all access token requests.

Instance Method Summary collapse

Methods included from ResponseObject

from, #headers, included, #status

Constructor Details

#initialize(response) ⇒ ResponseString

Returns a new instance of ResponseString.



53
54
55
56
# File 'lib/oauth2/response_object.rb', line 53

def initialize(response)
  super(response.body)
  self.response = response
end