lib/omcms/middleware/parse_response.rb in omcms-ruby-client-1.3.0 vs lib/omcms/middleware/parse_response.rb in omcms-ruby-client-1.4.0

- old
+ new

@@ -1,10 +1,10 @@ # frozen_string_literal: true module OMCMS class ParseResponse < Faraday::Middleware def initialize(app) - super(app) + super @app = app end def on_complete(response_env) return OMCMS::Response::Error.new(response_env) if response_env.status >= 400