Skip to content

Instantly share code, notes, and snippets.

@danielwellman
Created June 19, 2010 20:59
Show Gist options
  • Save danielwellman/445266 to your computer and use it in GitHub Desktop.
Save danielwellman/445266 to your computer and use it in GitHub Desktop.
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