lib/ecoportal/api/common/batch_response.rb in ecoportal-api-0.5.8 vs lib/ecoportal/api/common/batch_response.rb in ecoportal-api-0.6.0
- old
+ new
@@ -18,13 +18,13 @@
def each
[*@result].each do |doc|
yield doc
end
end
-
- def print
+
+ def pretty_print
if success?
- each(&:print)
+ each(&:pretty_print)
else
puts "Request failed."
end
end
end