Sha256: 93925206bf4e1b573c7790637cb52c34bcf385f2ff80abe4a5ab2a8989d00dec
Contents?: true
Size: 299 Bytes
Versions: 2
Compression:
Stored size: 299 Bytes
Contents
# frozen_string_literal: true module Onyphe module Clients class Pastries < Client 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
onyphe-1.1.0 | lib/onyphe/clients/pastries.rb |
onyphe-1.0.0 | lib/onyphe/clients/pastries.rb |