Module: Cloud::Appliance::Descriptor::Tools::GeneralInit
Instance Method Summary collapse
Instance Method Details
#initialize(*h) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/cloud/appliance/descriptor/tools/general_init.rb', line 6 def initialize(*h) if h.length == 1 && h.first.is_a?(Hash) h.first.each do |k, v| send("#{k}=", v) if respond_to? k end end set_defaults if respond_to? :set_defaults end |