Class: OpenStudio::Analysis::AlgorithmAttributes

Inherits:
Object
  • Object
show all
Defined in:
lib/openstudio/analysis/algorithm_attributes.rb

Instance Method Summary collapse

Constructor Details

#initialize ⇒ AlgorithmAttributes

Create a new instance of an algorithm



9
10
11
# File 'lib/openstudio/analysis/algorithm_attributes.rb', line 9

def initialize
  @attributes = {}
end

Instance Method Details

#set_attribute(attribute_name, attribute_value) ⇒ Object



13
14
15
# File 'lib/openstudio/analysis/algorithm_attributes.rb', line 13

def set_attribute(attribute_name, attribute_value)
  @attributes[attribute_name] = attribute_value
end

#to_hash(_version = 1) ⇒ Object



17
18
19
# File 'lib/openstudio/analysis/algorithm_attributes.rb', line 17

def to_hash(_version = 1)
  @attributes
end