To ensure symbols are passed through unquoted, but strings are quoted, the following lines should look like this I think:

    value = "\"#{value}\"" unless value.is_a?(Symbol)
    execute("set_network", "#{network_id}", key, value.to_s)