Class: MPXJ::Assignment

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

Overview

Represents a relationship between a task and a resource in a project plan

Instance Attribute Summary

Attributes inherited from Container

#parent_project

Instance Method Summary collapse

Methods inherited from Container

#initialize, #method_missing

Constructor Details

This class inherits a constructor from MPXJ::Container

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class MPXJ::Container

Instance Method Details

#resourceResource

Retrieve the resource associated with this assignment

Returns:

  • (Resource)

    the resource associated with this assignment.



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

def resource
  parent_project.get_resource_by_unique_id(resource_unique_id)
end

#taskTask

Retrieve the task associated with this assignment

Returns:

  • (Task)

    the task associated with this assignment.



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

def task
  parent_project.get_task_by_unique_id(task_unique_id)
end