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-13.9.0 lib/mpxj/assignment.rb
mpxj-13.8.0 lib/mpxj/assignment.rb
mpxj-13.7.0 lib/mpxj/assignment.rb
mpxj-13.6.0 lib/mpxj/assignment.rb
mpxj-13.5.1 lib/mpxj/assignment.rb
mpxj-13.5.0 lib/mpxj/assignment.rb
mpxj-13.4.1 lib/mpxj/assignment.rb
mpxj-13.4.0 lib/mpxj/assignment.rb
mpxj-13.3.1 lib/mpxj/assignment.rb
mpxj-13.3.0 lib/mpxj/assignment.rb
mpxj-13.2.1 lib/mpxj/assignment.rb
mpxj-13.2.0 lib/mpxj/assignment.rb
mpxj-13.1.0 lib/mpxj/assignment.rb
mpxj-13.0.2 lib/mpxj/assignment.rb
mpxj-13.0.1 lib/mpxj/assignment.rb
mpxj-13.0.0 lib/mpxj/assignment.rb
mpxj-12.10.3 lib/mpxj/assignment.rb
mpxj-12.10.2 lib/mpxj/assignment.rb
mpxj-12.9.3 lib/mpxj/assignment.rb
mpxj-12.9.2 lib/mpxj/assignment.rb