Class: MPXJ::Relation

Inherits:
Container show all
Defined in:
lib/mpxj/relation.rb

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

Methods inherited from Container

#initialize

Constructor Details

This class inherits a constructor from MPXJ::Container

Instance Method Details

#lagObject

Retrieve the Lag value

Returns:

  • Lag value



21
22
23
# File 'lib/mpxj/relation.rb', line 21

def lag
	get_duration_value(attribute_values['lag'])
end

#lag_unitsObject

Retrieve the Lag Units value

Returns:

  • Lag Units value



28
29
30
# File 'lib/mpxj/relation.rb', line 28

def lag_units
  attribute_values['lag_units']
end

#predecessor_task_unique_idObject

Retrieve the Predecessor Task Unique ID value

Returns:

  • Predecessor Task Unique ID value



7
8
9
# File 'lib/mpxj/relation.rb', line 7

def predecessor_task_unique_id
  get_integer_value(attribute_values['predecessor_task_unique_id'])
end

#successor_task_unique_idObject

Retrieve the Successor Task Unique ID value

Returns:

  • Successor Task Unique ID value



14
15
16
# File 'lib/mpxj/relation.rb', line 14

def successor_task_unique_id
  get_integer_value(attribute_values['successor_task_unique_id'])
end

#typeObject

Retrieve the Type value

Returns:

  • Type value



35
36
37
# File 'lib/mpxj/relation.rb', line 35

def type
	attribute_values['type']
end