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-10.9.0 lib/mpxj/assignment.rb
mpxj-10.8.0 lib/mpxj/assignment.rb
mpxj-10.7.0 lib/mpxj/assignment.rb
mpxj-10.6.2 lib/mpxj/assignment.rb
mpxj-10.6.1 lib/mpxj/assignment.rb
mpxj-10.6.0 lib/mpxj/assignment.rb
mpxj-10.5.0 lib/mpxj/assignment.rb
mpxj-10.4.0 lib/mpxj/assignment.rb
mpxj-10.3.0 lib/mpxj/assignment.rb
mpxj-10.2.0 lib/mpxj/assignment.rb
mpxj-10.1.0 lib/mpxj/assignment.rb
mpxj-10.0.5 lib/mpxj/assignment.rb
mpxj-10.0.4 lib/mpxj/assignment.rb
mpxj-10.0.3 lib/mpxj/assignment.rb
mpxj-10.0.2 lib/mpxj/assignment.rb
mpxj-10.0.1 lib/mpxj/assignment.rb
mpxj-10.0.0 lib/mpxj/assignment.rb
mpxj-9.8.3 lib/mpxj/assignment.rb
mpxj-9.8.2 lib/mpxj/assignment.rb
mpxj-9.8.1 lib/mpxj/assignment.rb