lib/onyphe/clients/pastries.rb in onyphe-0.2.3 vs lib/onyphe/clients/pastries.rb in onyphe-1.0.0
- old
+ new
@@ -1,10 +1,10 @@
# frozen_string_literal: true
module Onyphe
module Clients
class Pastries < Client
- def get_by_ip(ip, page = 1)
+ def get_by_ip(ip, page: 1)
raise ArgumentError, "Invalid IP address: #{ip}" unless Validator.valid_ip?(ip)
get("/pastries/#{ip}", page: page) { |json| json }
end
end