Class: MPXJ::Relation
Overview
Represents a relationship between two tasks in a project plan
Instance Attribute Summary
Attributes inherited from Container
#attribute_values, #parent_project
Instance Method Summary collapse
-
#lag ⇒ Object
Retrieve the Lag value.
-
#predecessor_task_unique_id ⇒ Object
Retrieve the Predecessor Task Unique ID value.
-
#successor_task_unique_id ⇒ Object
Retrieve the Successor Task Unique ID value.
-
#task_unique_id ⇒ Object
Retrieve the Task Unique ID value DEPRECATED: Please use
predecessor_task_unique_id
orsuccessor_task_unique_id
instead. -
#type ⇒ Object
Retrieve the Type value.
Methods inherited from Container
Constructor Details
This class inherits a constructor from MPXJ::Container
Instance Method Details
#lag ⇒ Object
Retrieve the Lag value
29 30 31 |
# File 'lib/mpxj/relation.rb', line 29 def lag get_duration_value(attribute_values['lag']) end |
#predecessor_task_unique_id ⇒ Object
Retrieve the Predecessor Task Unique ID value
15 16 17 |
# File 'lib/mpxj/relation.rb', line 15 def predecessor_task_unique_id get_integer_value(attribute_values['predecessor_task_unique_id']) end |
#successor_task_unique_id ⇒ Object
Retrieve the Successor Task Unique ID value
22 23 24 |
# File 'lib/mpxj/relation.rb', line 22 def successor_task_unique_id get_integer_value(attribute_values['successor_task_unique_id']) end |
#task_unique_id ⇒ Object
Retrieve the Task Unique ID value DEPRECATED: Please use predecessor_task_unique_id
or successor_task_unique_id
instead.
8 9 10 |
# File 'lib/mpxj/relation.rb', line 8 def task_unique_id get_integer_value(attribute_values['task_unique_id']) end |
#type ⇒ Object
Retrieve the Type value
36 37 38 |
# File 'lib/mpxj/relation.rb', line 36 def type attribute_values['type'] end |