Class: OAuth2::ResponseHash
- Inherits:
-
Hash
- Object
- Hash
- OAuth2::ResponseHash
- Includes:
- ResponseObject
- Defined in:
- lib/oauth2/response_object.rb
Instance Method Summary collapse
-
#initialize(response, hash) ⇒ ResponseHash
constructor
A new instance of ResponseHash.
Methods included from ResponseObject
from, #headers, included, #status
Constructor Details
#initialize(response, hash) ⇒ ResponseHash
Returns a new instance of ResponseHash.
31 32 33 34 |
# File 'lib/oauth2/response_object.rb', line 31 def initialize(response, hash) self.response = response hash.keys.each{|k| self[k] = hash[k]} end |