File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ module ApiClient
1111 # Create a Prometheus API client:
1212 #
1313 # @param [Hash] options
14- # @option options [Hash ] :url String base URL.
14+ # @option options [String ] :url Server base URL.
1515 # @option options [Hash] :params URI query unencoded key/value pairs.
1616 # @option options [Hash] :headers Unencoded HTTP header key/value pairs.
1717 # @option options [Hash] :request Request options.
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ module Cadvisor
1111 # Create a Prometheus API client:
1212 #
1313 # @param [Hash] options
14- # @option options [Hash ] :url String base URL.
14+ # @option options [String ] :url Server base URL.
1515 # @option options [Hash] :params URI query unencoded key/value pairs.
1616 # @option options [Hash] :headers Unencoded HTTP header key/value pairs.
1717 # @option options [Hash] :request Request options.
Original file line number Diff line number Diff line change @@ -24,15 +24,15 @@ class RequestError < StandardError; end
2424 # Create a Prometheus API client:
2525 #
2626 # @param [Hash] options
27- # @option options [Hash ] :url String base URL.
27+ # @option options [String ] :url server base URL.
2828 # @option options [Hash] :params URI query unencoded key/value pairs.
2929 # @option options [Hash] :headers Unencoded HTTP header key/value pairs.
3030 # @option options [Hash] :request Request options.
3131 # @option options [Hash] :ssl SSL options.
3232 # @option options [Hash] :proxy Proxy options.
3333 #
3434 # A default client is created if options is omitted.
35- def initialize ( options )
35+ def initialize ( options = { } )
3636 options = DEFAULT_ARGS . merge ( options )
3737
3838 @client = Faraday . new (
You can’t perform that action at this time.
0 commit comments