Class: URLhausMonitor::Checker

Inherits:
Object
  • Object
show all
Defined in:
lib/urlhaus_monitor/checker.rb

Constant Summary collapse

BASE_URL =
"https://urlhaus.abuse.ch"
LIMIT =
50

Instance Method Summary collapse

Instance Method Details

#lookup_by_asn(asn) ⇒ Object



18
19
20
# File 'lib/urlhaus_monitor/checker.rb', line 18

def lookup_by_asn(asn)
  lookup "#{BASE_URL}/feeds/asn/#{asn}"
end

#lookup_by_country(country) ⇒ Object



10
11
12
# File 'lib/urlhaus_monitor/checker.rb', line 10

def lookup_by_country(country)
  lookup "#{BASE_URL}/feeds/country/#{country}"
end

#lookup_by_tld(tld) ⇒ Object



14
15
16
# File 'lib/urlhaus_monitor/checker.rb', line 14

def lookup_by_tld(tld)
  lookup "#{BASE_URL}/feeds/tld/#{tld}"
end