Class: EnergyPlus::Variable
- Inherits:
-
Object
- Object
- EnergyPlus::Variable
- Defined in:
- lib/energyplus/EsoFile.rb
Instance Method Summary collapse
- #days ⇒ Object
- #hours ⇒ Object
- #id ⇒ Object
-
#initialize(dictionary_entry, data, timestamps) ⇒ Variable
constructor
attr_reader :data.
- #interval ⇒ Object
- #key ⇒ Object
- #months ⇒ Object
- #name ⇒ Object
- #units ⇒ Object
- #values ⇒ Object
Constructor Details
#initialize(dictionary_entry, data, timestamps) ⇒ Variable
attr_reader :data
31 32 33 34 35 |
# File 'lib/energyplus/EsoFile.rb', line 31 def initialize(dictionary_entry,data,) @dictionary_entry = dictionary_entry @data = data @timestamps = end |
Instance Method Details
#days ⇒ Object
65 66 67 |
# File 'lib/energyplus/EsoFile.rb', line 65 def days @timestamps.map { |entry| entry[1] } end |
#hours ⇒ Object
61 62 63 |
# File 'lib/energyplus/EsoFile.rb', line 61 def hours @timestamps.map { |entry| entry[5] } end |
#id ⇒ Object
45 46 47 |
# File 'lib/energyplus/EsoFile.rb', line 45 def id return @dictionary_entry.id end |
#interval ⇒ Object
53 54 55 |
# File 'lib/energyplus/EsoFile.rb', line 53 def interval return @dictionary_entry.interval end |
#key ⇒ Object
41 42 43 |
# File 'lib/energyplus/EsoFile.rb', line 41 def key return @dictionary_entry.key end |
#months ⇒ Object
69 70 71 |
# File 'lib/energyplus/EsoFile.rb', line 69 def months @timestamps.map { |entry| entry[2] } end |
#name ⇒ Object
37 38 39 |
# File 'lib/energyplus/EsoFile.rb', line 37 def name return @dictionary_entry.var_name end |
#units ⇒ Object
49 50 51 |
# File 'lib/energyplus/EsoFile.rb', line 49 def units return @dictionary_entry.units end |
#values ⇒ Object
57 58 59 |
# File 'lib/energyplus/EsoFile.rb', line 57 def values @data.map { |entry| entry[1] } end |