class Timetrack::Event
Value object for an event that has its date information
Public Instance Methods
to_s()
click to toggle source
# File lib/timetrack/event.rb, line 7 def to_s " #{submitted_block}#{task} #{TimeFormatter.format self.begin}" \ " #{TimeFormatter.format self.end}#{comment_block}" end
Private Instance Methods
comment_block()
click to toggle source
# File lib/timetrack/event.rb, line 18 def comment_block " ; #{comment}" unless comment.to_s.empty? end
submitted_block()
click to toggle source
# File lib/timetrack/event.rb, line 14 def submitted_block '* ' if submitted end