lib/mihari/clients/onyphe.rb in mihari-5.4.7 vs lib/mihari/clients/onyphe.rb in mihari-5.4.8

- old
+ new

@@ -10,14 +10,16 @@ # # @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://www.onyphe.io", api_key:, headers: {}, interval: nil) + def initialize(base_url = "https://www.onyphe.io", api_key:, headers: {}, interval: nil, timeout: nil) raise(ArgumentError, "'api_key' argument is required") if api_key.nil? - super(base_url, headers: headers, interval: interval) + super(base_url, headers: headers, interval: interval, timeout: timeout) @api_key = api_key end #