lib/prometheus/api_client/client.rb in prometheus-api-client-0.2.10 vs lib/prometheus/api_client/client.rb in prometheus-api-client-0.3.1

- old
+ new

@@ -22,18 +22,18 @@ }.freeze # Create a Prometheus API client: # # @param [Hash] options - # @option options [Hash] :url String base URL. + # @option options [String] :url server base URL. # @option options [Hash] :params URI query unencoded key/value pairs. # @option options [Hash] :headers Unencoded HTTP header key/value pairs. # @option options [Hash] :request Request options. # @option options [Hash] :ssl SSL options. # @option options [Hash] :proxy Proxy options. # # A default client is created if options is omitted. - def initialize(options) + def initialize(options = {}) options = DEFAULT_ARGS.merge(options) @client = Faraday.new( faraday_options(options), )