Class: MppReader::Task
- Inherits:
-
Object
- Object
- MppReader::Task
- Defined in:
- lib/mpp_reader/task.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#children ⇒ Object
readonly
Returns the value of attribute children.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#finish ⇒ Object
Returns the value of attribute finish.
-
#id ⇒ Object
Returns the value of attribute id.
-
#manual ⇒ Object
Returns the value of attribute manual.
-
#milestone ⇒ Object
Returns the value of attribute milestone.
-
#name ⇒ Object
Returns the value of attribute name.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#outline_level ⇒ Object
Returns the value of attribute outline_level.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#percent_complete ⇒ Object
Returns the value of attribute percent_complete.
-
#predecessors ⇒ Object
readonly
Returns the value of attribute predecessors.
-
#start ⇒ Object
Returns the value of attribute start.
-
#successors ⇒ Object
readonly
Returns the value of attribute successors.
-
#unique_id ⇒ Object
Returns the value of attribute unique_id.
Instance Method Summary collapse
-
#initialize ⇒ Task
constructor
A new instance of Task.
- #milestone? ⇒ Boolean
-
#summary ⇒ Object
(also: #summary?)
A summary task is one with subtasks (MS Project derives this the same way).
Constructor Details
#initialize ⇒ Task
Returns a new instance of Task.
8 9 10 11 12 |
# File 'lib/mpp_reader/task.rb', line 8 def initialize @children = [] @predecessors = [] @successors = [] end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
3 4 5 |
# File 'lib/mpp_reader/task.rb', line 3 def active @active end |
#children ⇒ Object (readonly)
Returns the value of attribute children.
6 7 8 |
# File 'lib/mpp_reader/task.rb', line 6 def children @children end |
#duration ⇒ Object
Returns the value of attribute duration.
3 4 5 |
# File 'lib/mpp_reader/task.rb', line 3 def duration @duration end |
#finish ⇒ Object
Returns the value of attribute finish.
3 4 5 |
# File 'lib/mpp_reader/task.rb', line 3 def finish @finish end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/mpp_reader/task.rb', line 3 def id @id end |
#manual ⇒ Object
Returns the value of attribute manual.
3 4 5 |
# File 'lib/mpp_reader/task.rb', line 3 def manual @manual end |
#milestone ⇒ Object
Returns the value of attribute milestone.
3 4 5 |
# File 'lib/mpp_reader/task.rb', line 3 def milestone @milestone end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/mpp_reader/task.rb', line 3 def name @name end |
#notes ⇒ Object
Returns the value of attribute notes.
3 4 5 |
# File 'lib/mpp_reader/task.rb', line 3 def notes @notes end |
#outline_level ⇒ Object
Returns the value of attribute outline_level.
3 4 5 |
# File 'lib/mpp_reader/task.rb', line 3 def outline_level @outline_level end |
#parent ⇒ Object
Returns the value of attribute parent.
3 4 5 |
# File 'lib/mpp_reader/task.rb', line 3 def parent @parent end |
#percent_complete ⇒ Object
Returns the value of attribute percent_complete.
3 4 5 |
# File 'lib/mpp_reader/task.rb', line 3 def percent_complete @percent_complete end |
#predecessors ⇒ Object (readonly)
Returns the value of attribute predecessors.
6 7 8 |
# File 'lib/mpp_reader/task.rb', line 6 def predecessors @predecessors end |
#start ⇒ Object
Returns the value of attribute start.
3 4 5 |
# File 'lib/mpp_reader/task.rb', line 3 def start @start end |
#successors ⇒ Object (readonly)
Returns the value of attribute successors.
6 7 8 |
# File 'lib/mpp_reader/task.rb', line 6 def successors @successors end |
#unique_id ⇒ Object
Returns the value of attribute unique_id.
3 4 5 |
# File 'lib/mpp_reader/task.rb', line 3 def unique_id @unique_id end |
Instance Method Details
#milestone? ⇒ Boolean
14 |
# File 'lib/mpp_reader/task.rb', line 14 def milestone? = !!@milestone |
#summary ⇒ Object Also known as: summary?
A summary task is one with subtasks (MS Project derives this the same way).
18 |
# File 'lib/mpp_reader/task.rb', line 18 def summary = !@children.empty? |