Class: MPXJ::Task
Overview
Represents a task in a project plan
Instance Attribute Summary collapse
-
#assignments ⇒ Object
readonly
Returns the value of attribute assignments.
-
#child_tasks ⇒ Object
readonly
Returns the value of attribute child_tasks.
-
#predecessors ⇒ Object
readonly
Returns the value of attribute predecessors.
-
#successors ⇒ Object
readonly
Returns the value of attribute successors.
Attributes inherited from Container
Instance Method Summary collapse
-
#initialize(parent_project, attribute_types, attribute_values) ⇒ Task
constructor
A new instance of Task.
-
#parent_task ⇒ Task?
Retrieve the parent task of this task.
Methods inherited from Container
Constructor Details
#initialize(parent_project, attribute_types, attribute_values) ⇒ Task
Returns a new instance of Task.
9 10 11 12 13 14 15 |
# File 'lib/mpxj/task.rb', line 9 def initialize(parent_project, attribute_types, attribute_values) super(parent_project, attribute_types, attribute_values) @assignments = [] @child_tasks = [] process_relations process_hierarchy end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class MPXJ::Container
Instance Attribute Details
#assignments ⇒ Object (readonly)
Returns the value of attribute assignments.
4 5 6 |
# File 'lib/mpxj/task.rb', line 4 def assignments @assignments end |
#child_tasks ⇒ Object (readonly)
Returns the value of attribute child_tasks.
7 8 9 |
# File 'lib/mpxj/task.rb', line 7 def child_tasks @child_tasks end |
#predecessors ⇒ Object (readonly)
Returns the value of attribute predecessors.
5 6 7 |
# File 'lib/mpxj/task.rb', line 5 def predecessors @predecessors end |
#successors ⇒ Object (readonly)
Returns the value of attribute successors.
6 7 8 |
# File 'lib/mpxj/task.rb', line 6 def successors @successors end |
Instance Method Details
#parent_task ⇒ Task?
Retrieve the parent task of this task
21 22 23 |
# File 'lib/mpxj/task.rb', line 21 def parent_task parent_project.get_task_by_unique_id(parent_task_unique_id) end |