Created
February 29, 2012 05:43
-
-
Save letsbreelhere/1938271 to your computer and use it in GitHub Desktop.
Functional to_hash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def to_hash | |
@reports.inject({}) do |report_hash, report| | |
report_hash.merge report.to_hash | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment