lib/hypernova/response.rb in hypernova-1.0.1 vs lib/hypernova/response.rb in hypernova-1.0.2
- old
+ new
@@ -1,11 +1,8 @@
require "json"
-require "hypernova/plugin_helper"
class Hypernova::Response
- include Hypernova::PluginHelper
-
def initialize(request)
@request = request
end
# Example parsed body with no error:
@@ -45,10 +42,9 @@
response = parse_body
# This enables backward compatibility with the old server response format.
# In the new format, the response results are contained within a "results" key. The top level
# hash contains a "success" and "error" which relates to the whole batch.
response = response["results"] || response
- after_response(response, response)
end
private
attr_reader :request