lib/redgraph/query_response.rb in redgraph-0.1.3 vs lib/redgraph/query_response.rb in redgraph-0.1.4
- old
+ new
@@ -134,10 +134,10 @@
end
# The resultset has one element per entity (as described by the header)
def parse_resultset
@result_rows.map do |item|
- out = {}
+ out = HashWithIndifferentAccess.new
item.each.with_index do |(type, value), i|
out[entities[i]] = value
end