# frozen_string_literal: true module Onyphe module Clients class Threatlist < Client def get_by_ip(ip, page = 1) raise ArgumentError, "Invalid IP address: #{ip}" unless Validator.valid_ip?(ip) get("/threatlist/#{ip}", page: page) { |json| json } end end end end