Class: URLhausMonitor::CLI

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

Instance Method Summary collapse

Instance Method Details

#lookup_by_asn(asn) ⇒ Object



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

def lookup_by_asn(asn)
  Monitor.new.lookup_by_asn asn
end

#lookup_by_country(country) ⇒ Object



8
9
10
# File 'lib/urlhaus_monitor/cli.rb', line 8

def lookup_by_country(country)
  Monitor.new.lookup_by_country country
end

#lookup_by_tld(tld) ⇒ Object



13
14
15
# File 'lib/urlhaus_monitor/cli.rb', line 13

def lookup_by_tld(tld)
  Monitor.new.lookup_by_tld tld
end