class URBANopt::GeoJSON::Extension

Public Instance Methods

doc_templates_dir() click to toggle source

The directory containing common files like copyright and license notices which are used to update measures and other code. This method will only be applied to measures in the current repository and returns the absolute path of the doc_templates_dir or nil if there is none.

# File lib/urbanopt/geojson/derived_extension.rb, line 33
def doc_templates_dir
  return File.absolute_path(File.join(@root_dir, 'doc_templates'))
end
files_dir() click to toggle source

The directory containign relevant files such as weather data, design days, etc. The method returns nil if no files are present. It is used while configuring OSWs.

# File lib/urbanopt/geojson/derived_extension.rb, line 26
def files_dir
  return nil
end
measures_dir() click to toggle source

Returns the absolute path of the measures or returns nil, in case no measures are added. It can be used while configuring OSWs.

# File lib/urbanopt/geojson/derived_extension.rb, line 19
def measures_dir
  return File.absolute_path(File.join(@root_dir, 'lib/measures'))
end