lib/appfuel/handler/base.rb in appfuel-0.5.16 vs lib/appfuel/handler/base.rb in appfuel-0.6.1
- old
+ new
@@ -72,10 +72,11 @@
title = "#{container_class_path} Failed:"
HandlerFailure.new(title, response)
end
end
+ # Instance methods
attr_reader :data
def initialize(container = Dry::Container.new)
@data = container
end
@@ -114,9 +115,15 @@
return data.to_h
end
container[key].call(data, inputs)
+ end
+
+ private
+
+ def fail_handler!(response)
+ self.class.fail_handler!(response)
end
end
end
end