class Cymru::ASNumber

Constants

ASN

Attributes

allocdate[R]
asname[R]
country[R]
registry[R]

Public Class Methods

new() click to toggle source
# File lib/cymruwhois.rb, line 74
def initialize
end

Public Instance Methods

lookup(asn)
Alias for: whois
whois(asn) click to toggle source
# File lib/cymruwhois.rb, line 77
def whois(asn)
  @asn = "AS" + asn + ASN

  ans = intxt(@asn)
  @country = ans[1]
  @registry = ans[2]
  @allocdate = ans[3]
  @asname = ans[4]
  
  return ans 
end
Also aliased as: lookup