Class: BuildingSync::Extension

Inherits:
OpenStudio::Extension::Extension
  • Object
show all
Defined in:
lib/buildingsync/extension.rb

Overview

Extension class

Instance Method Summary collapse

Constructor Details

#initializeExtension

Override the base class The Extension class contains both the instance of the BuildingSync file (in XML) and the helper methods from the OpenStudio::Extension gem to support managing measures that are related to BuildingSync.



50
51
52
53
54
55
# File 'lib/buildingsync/extension.rb', line 50

def initialize
  # Initialize the root directory for use in the extension class. This must be done, otherwise the
  # root_dir will be the root_dir in the OpenStudio Extension Gem.
  super
  @root_dir = File.absolute_path(File.join(File.dirname(__FILE__), '..', '..'))
end