module IP2ASN
Constants
- URL
- VERSION
Public Class Methods
check(ip_address, json: false)
click to toggle source
# File lib/ip2asn.rb, line 7 def self.check(ip_address, json: false) resp = Unirest.get URL + ip_address if resp.code != 200 raise resp.body end return resp.body unless json return resp.raw_body end