def symbolize_keys(hash)
      hash.inject({}){|result, (key, value)|
        new_key = case key
          when String then key.to_sym
          else key
          end
        new_value = case value
          when Hash then symbolize_keys(value)
          else value
          end
        result[new_key] = new_value
        result
      }
    end
def symbolize_keys(hash)
      hash.inject({}){|result, (key, value)|
        new_key = case key
          when String then key.to_sym
          else key
          end
        new_value = case value
          when Hash then symbolize_keys(value)
          else value
          end
        result[new_key] = new_value
        result
      }
    end
Private method.  Converts keys passed in as strings into symbols.

 @param hash [Hash] Hash containing arguments to login to jenkins.