Class: OAuth2::ResponseHash

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

Instance Method Summary collapse

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