Sha256: 6d9b166a41cff844d087b0525577da2fca4151cea069693c9079d8e707cb1700

Contents?: true

Size: 566 Bytes

Versions: 126

Compression:

Stored size: 566 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

126 entries across 126 versions & 1 rubygems

Version Path
mpxj-9.4.0 lib/mpxj/assignment.rb
mpxj-9.3.1 lib/mpxj/assignment.rb
mpxj-9.3.0 lib/mpxj/assignment.rb
mpxj-9.2.6 lib/mpxj/assignment.rb
mpxj-9.2.5 lib/mpxj/assignment.rb
mpxj-9.2.4 lib/mpxj/assignment.rb
mpxj-9.2.3 lib/mpxj/assignment.rb
mpxj-9.2.2 lib/mpxj/assignment.rb
mpxj-9.2.1 lib/mpxj/assignment.rb
mpxj-9.1.0 lib/mpxj/assignment.rb
mpxj-9.0.0 lib/mpxj/assignment.rb
mpxj-8.5.1 lib/mpxj/assignment.rb
mpxj-8.5.0 lib/mpxj/assignment.rb
mpxj-8.4.0 lib/mpxj/assignment.rb
mpxj-8.3.5 lib/mpxj/assignment.rb
mpxj-8.3.4 lib/mpxj/assignment.rb
mpxj-8.3.3 lib/mpxj/assignment.rb
mpxj-8.3.2 lib/mpxj/assignment.rb
mpxj-8.3.1 lib/mpxj/assignment.rb
mpxj-8.3.0 lib/mpxj/assignment.rb