Parent

Methods

Class Index [+]

Quicksearch

TaskJuggler::JournalEntry

A JournalEntry stores some RichText strings to describe a status or a property of the project at a certain point in time. Additionally, the entry can contain a reference to a Resource as author and an alert level. The text is structured in 3 different elements, a headline, a short summary and a longer text segment. The headline is mandatory, the summary and details sections are optional.

Attributes

date[R]
headline[R]
property[R]
sourceFileInfo[R]
author[RW]
summary[RW]
details[RW]
alertLevel[RW]
flags[RW]
timeSheetRecord[RW]

Public Class Methods

new(journal, date, headline, property, sourceFileInfo = nil) click to toggle source

Create a new JournalEntry object.

    # File lib/taskjuggler/Journal.rb, line 29
29:     def initialize(journal, date, headline, property, sourceFileInfo = nil)
30:       # A reference to the Journal object this entry belongs to.
31:       @journal = journal
32:       # The date of the entry.
33:       @date = date
34:       # A very short description. Should not be longer than about 40
35:       # characters.
36:       @headline = headline
37:       # A reference to a PropertyTreeNode object.
38:       @property = property
39:       # Source file location of this entry of type SourceFileInfo
40:       @sourceFileInfo = sourceFileInfo
41:       # A reference to a Resource.
42:       @author = nil
43:       # An introductory or summarizing RichText paragraph.
44:       @summary = nil
45:       # A RichText of arbitrary length.
46:       @details = nil
47:       # The alert level.
48:       @alertLevel = 0
49:       # A list of flags.
50:       @flags = []
51:       # A reference to a time sheet record that was used to create this
52:       # JournalEntry object.
53:       @timeSheetRecord = nil
54: 
55:       # Add the new entry to the journal.
56:       @journal.addEntry(self)
57:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.