lib/safety_pin/node.rb
def convert_hash_to_node_blueprint(hash)
      hash.keys.each do |key|
        if hash[key].is_a? Hash
          hash[key] = convert_hash_to_node_blueprint(hash[key])
        end
      end
      NodeBlueprint.new(:path => :no_path, :properties => hash)
    end
def convert_hash_to_node_blueprint(hash)
      hash.keys.each do |key|
        if hash[key].is_a? Hash
          hash[key] = convert_hash_to_node_blueprint(hash[key])
        end
      end
      NodeBlueprint.new(:path => :no_path, :properties => hash)
    end
Convert a hash (and it's values recursively) to NodeBlueprints. This is a
 helper method, allowing a hash to be passed in to Node#properties= when
 only properties need to be set. One caveat: all node types will default
 to nt:unstructured.