Module: Cloud::Appliance::Descriptor::Tools::GeneralToHash
Instance Method Summary collapse
Instance Method Details
#to_hash ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/cloud/appliance/descriptor/tools/general_to_hash.rb', line 6 def to_hash variables = {} instance_variables.each do |variable| value = instance_variable_get variable variables[variable.to_s[1..-1]] = value end variables end |