Class: MPXJ::Resource

Inherits:
Container show all
Defined in:
lib/mpxj/resource.rb

Overview

Represents a resource in a project plan

Instance Attribute Summary collapse

Attributes inherited from Container

#parent_project

Instance Method Summary collapse

Methods inherited from Container

#method_missing

Constructor Details

#initialize(parent_project, attribute_types, attribute_values) ⇒ Resource

Returns a new instance of Resource.



5
6
7
8
# File 'lib/mpxj/resource.rb', line 5

def initialize(parent_project, attribute_types, attribute_values)
  super(parent_project, attribute_types, attribute_values)
  @assignments = []
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class MPXJ::Container

Instance Attribute Details

#assignmentsObject (readonly)

Returns the value of attribute assignments.



4
5
6
# File 'lib/mpxj/resource.rb', line 4

def assignments
  @assignments
end