lib/mihari/clients/hunterhow.rb in mihari-5.4.7 vs lib/mihari/clients/hunterhow.rb in mihari-5.4.8
- old
+ new
@@ -13,14 +13,15 @@
#
# @param [String] base_url
# @param [String, nil] api_key
# @param [Hash] headers
# @param [Integer, nil] interval
+ # @param [Integer, nil] timeout
#
- def initialize(base_url = "https://api.hunter.how/", api_key:, headers: {}, interval: nil)
+ def initialize(base_url = "https://api.hunter.how/", api_key:, headers: {}, interval: nil, timeout: nil)
raise(ArgumentError, "'api_key' argument is required") unless api_key
- super(base_url, headers: headers, interval: interval)
+ super(base_url, headers: headers, interval: interval, timeout: timeout)
@api_key = api_key
end
#