Class: OpenStudio::Analysis::AlgorithmAttributes
- Inherits:
-
Object
- Object
- OpenStudio::Analysis::AlgorithmAttributes
- Defined in:
- lib/openstudio/analysis/algorithm_attributes.rb
Instance Method Summary collapse
- #[](name) ⇒ Object
-
#initialize ⇒ AlgorithmAttributes
constructor
Create a new instance of an algorithm.
- #set_attribute(attribute_name, attribute_value) ⇒ Object
- #to_hash(_version = 1) ⇒ Object
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
#[](name) ⇒ Object
17 18 19 |
# File 'lib/openstudio/analysis/algorithm_attributes.rb', line 17 def [](name) @attributes[name] end |
#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
21 22 23 |
# File 'lib/openstudio/analysis/algorithm_attributes.rb', line 21 def to_hash(_version = 1) @attributes end |