Skip to content

Instantly share code, notes, and snippets.

@jcuffe
Created August 4, 2012 00:45
Show Gist options
  • Save jcuffe/3253108 to your computer and use it in GitHub Desktop.
Save jcuffe/3253108 to your computer and use it in GitHub Desktop.
@data.each do |date, result|
result.each do |entry|
carrier = entry["CarrierName"].to_sym
type = entry["Activity"].chomp("RecordCount").to_sym
@report[carrier] ||= {}
@report[carrier][type] ||= {}
@report[carrier][type][date.to_sym] = entry["RecordCount"]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment