# File lib/oauth2/error.rb, line 7 def initialize(response) response.error = self @response = response if response.parsed.is_a?(Hash) @code = response.parsed['error'] @description = response.parsed['error_description'] end end