Sha256: 347f669ec3f7f7eb37e5087711d38adf1895fbb0bf0032185bce79ce0da51e95

Contents?: true

Size: 623 Bytes

Versions: 86

Compression:

Stored size: 623 Bytes

Contents

module MPXJ
  # Represents a relationship between a task and a resource in a project plan
  class Assignment < Container
    include MPXJ::AssignmentMethods

    # 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

86 entries across 86 versions & 1 rubygems

Version Path
mpxj-12.9.1 lib/mpxj/assignment.rb
mpxj-12.9.0 lib/mpxj/assignment.rb
mpxj-12.8.1 lib/mpxj/assignment.rb
mpxj-12.8.0 lib/mpxj/assignment.rb
mpxj-12.7.0 lib/mpxj/assignment.rb
mpxj-12.6.0 lib/mpxj/assignment.rb
mpxj-12.5.0 lib/mpxj/assignment.rb
mpxj-12.4.0 lib/mpxj/assignment.rb
mpxj-12.3.0 lib/mpxj/assignment.rb
mpxj-12.2.0 lib/mpxj/assignment.rb
mpxj-12.1.3 lib/mpxj/assignment.rb
mpxj-12.1.2 lib/mpxj/assignment.rb
mpxj-12.1.1 lib/mpxj/assignment.rb
mpxj-12.1.0 lib/mpxj/assignment.rb
mpxj-12.0.2 lib/mpxj/assignment.rb
mpxj-12.0.1 lib/mpxj/assignment.rb
mpxj-12.0.0 lib/mpxj/assignment.rb
mpxj-11.5.4 lib/mpxj/assignment.rb
mpxj-11.5.3 lib/mpxj/assignment.rb
mpxj-11.5.2 lib/mpxj/assignment.rb