Module: StackMaster::Utils::Initializable
- Included in:
- Stack, StackDefinition, TestDriver::Stack, TestDriver::StackEvent, TestDriver::StackResource
- Defined in:
- lib/stack_master/utils.rb
Instance Method Summary collapse
Instance Method Details
#attributes=(attributes) ⇒ Object
8 9 10 11 12 |
# File 'lib/stack_master/utils.rb', line 8 def attributes=(attributes) attributes.each do |k, v| instance_variable_set("@#{k}", v) end end |
#initialize(attributes = {}) ⇒ Object
4 5 6 |
# File 'lib/stack_master/utils.rb', line 4 def initialize(attributes = {}) self.attributes = attributes end |