Created
June 19, 2010 20:59
-
-
Save danielwellman/445266 to your computer and use it in GitHub Desktop.
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
class EmployeeData | |
attr_accessor :first_name, :last_name | |
attr_accessor :dates | |
end | |
var record = EmployeeData.new("Dan", "Wellman", { | |
Date.new("1/1/2001") => 38.5 # hours actually worked on that day | |
}) | |
data = [record] | |
gen = ReportGenerator.new(data) // Array of EmployeeRecords | |
gen.render(filename) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment