lib/mihari/clients/google_public_dns.rb in mihari-7.3.2 vs lib/mihari/clients/google_public_dns.rb in mihari-7.4.0

- old
+ new

@@ -10,11 +10,11 @@ # @param [String] base_url # @param [Hash] headers # @param [Integer, nil] timeout # def initialize(base_url = "https://dns.google", headers: {}, timeout: nil) - super(base_url, headers: headers, timeout: timeout) + super(base_url, headers:, timeout:) end # # Query Google Public DNS by resource type # @@ -22,10 +22,10 @@ # # @return [Mihari::Structs::GooglePublicDNS::Response, nil] # def query_all(name) Structs::GooglePublicDNS::Response.from_dynamic! get_json("/resolve", - params: { name: name, type: "ALL" }) + params: {name:, type: "ALL"}) end end end end