lib/mpxj/project.rb in mpxj-5.1.4 vs lib/mpxj/project.rb in mpxj-5.1.6

- old
+ new

@@ -6,20 +6,24 @@ attr_reader :properties attr_reader :all_resources attr_reader :all_tasks attr_reader :child_tasks attr_reader :all_assignments - def initialize(file_name) + attr_reader :zone + + def initialize(file_name, zone) @resources_by_unique_id = {} @tasks_by_unique_id = {} @resources_by_id = {} @tasks_by_id = {} @all_resources = [] @all_tasks = [] @all_assignments = [] @child_tasks = [] + + @zone = zone file = File.read(file_name) json_data = JSON.parse(file) process_properties(json_data) process_resources(json_data)