ytodo/task.rb

29 lines
744 B
Ruby
Raw Normal View History

2009-05-18 09:39:17 +00:00
#!/usr/bin/env ruby
class Task
def initialize(description, note, contacts,
contexts, projects, dates)
# the title of the task
@description=description
# list of additionnal informations about the note
# such as files (pdf, csv...)
# details concerning this task
@notes=notes
# list of contacts
@contacts=contacts
# list of contextes
@contexts=contexts
# list of projects
@projects=projects
# multiple date associated to a task
@dates=dates
end
def initialize(description)
@notes=[]
@contacts=[]
@contexts=[]
@projects=[]
@dates=TaskTime.new()
end
end