class EnergyPlus::Variable

Public Class Methods

new(dictionary_entry,data,timestamps) click to toggle source

attr_reader :data

# File lib/energyplus/EsoFile.rb, line 31
def initialize(dictionary_entry,data,timestamps)
  @dictionary_entry = dictionary_entry
  @data = data
  @timestamps = timestamps
end

Public Instance Methods

days() click to toggle source
# File lib/energyplus/EsoFile.rb, line 65
def days
  @timestamps.map { |entry| entry[1] }
end
hours() click to toggle source
# File lib/energyplus/EsoFile.rb, line 61
def hours
  @timestamps.map { |entry| entry[5] }
end
id() click to toggle source
# File lib/energyplus/EsoFile.rb, line 45
def id
  return @dictionary_entry.id
end
interval() click to toggle source
# File lib/energyplus/EsoFile.rb, line 53
def interval
  return @dictionary_entry.interval
end
key() click to toggle source
# File lib/energyplus/EsoFile.rb, line 41
def key
  return @dictionary_entry.key
end
months() click to toggle source
# File lib/energyplus/EsoFile.rb, line 69
def months
  @timestamps.map { |entry| entry[2] }
end
name() click to toggle source
# File lib/energyplus/EsoFile.rb, line 37
def name
  return @dictionary_entry.var_name
end
units() click to toggle source
# File lib/energyplus/EsoFile.rb, line 49
def units
  return @dictionary_entry.units
end
values() click to toggle source
# File lib/energyplus/EsoFile.rb, line 57
def values
  @data.map { |entry| entry[1] }
end