Class: Rack::OauthProxy::Client::Response
- Inherits:
-
Object
- Object
- Rack::OauthProxy::Client::Response
- Defined in:
- lib/rack/oauth_proxy/client/response.rb
Instance Method Summary collapse
-
#initialize(raw) ⇒ Response
constructor
A new instance of Response.
- #to_hash ⇒ Object
- #valid_as_access_token? ⇒ Boolean
Constructor Details
#initialize(raw) ⇒ Response
Returns a new instance of Response.
7 8 9 |
# File 'lib/rack/oauth_proxy/client/response.rb', line 7 def initialize(raw) @raw = raw end |
Instance Method Details
#to_hash ⇒ Object
15 16 17 |
# File 'lib/rack/oauth_proxy/client/response.rb', line 15 def to_hash parsed_body end |
#valid_as_access_token? ⇒ Boolean
11 12 13 |
# File 'lib/rack/oauth_proxy/client/response.rb', line 11 def valid_as_access_token? ok? && json? && hash? end |