Sha256: 84e460dbf3a5d7ad19b301adc0c6bc0bdf3fb09c0212eab24ec5b78bd068f383

Contents?: true

Size: 584 Bytes

Versions: 1

Compression:

Stored size: 584 Bytes

Contents

module MPXJ
  # Represents a relationship between a task and a resource in a project plan
  class Assignment < Container
    # Retrieve the task associated with this assignment
    #
    # @return [Task] the task associated with this assignment.
    def task
      parent_project.get_task_by_unique_id(task_unique_id)
    end

    # Retrieve the resource associated with this assignment
    #
    # @return [Resource] the resource associated with this assignment.
    def resource
      parent_project.get_resource_by_unique_id(resource_unique_id)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mpxj-9.2.0 lib/mpxj/assignment.rb