lib/quandl/client/middleware/parse_json.rb in quandl_client-2.5.2 vs lib/quandl/client/middleware/parse_json.rb in quandl_client-2.5.3
- old
+ new
@@ -45,9 +45,11 @@
# collect some response data
metadata.merge!(json).merge!({
status: env[:status],
headers: env[:response_headers],
})
+ # each doc metadata references metadata
+ docs.each{|d| d[:metadata] = metadata }
# return object
object = {
:data => docs,
:errors => errors,
:metadata => metadata
\ No newline at end of file