Class: URLhausMonitor::Monitor
- Inherits:
-
Object
- Object
- URLhausMonitor::Monitor
- Defined in:
- lib/urlhaus_monitor/monitor.rb
Instance Attribute Summary collapse
-
#cache ⇒ Object
readonly
Returns the value of attribute cache.
-
#checker ⇒ Object
readonly
Returns the value of attribute checker.
Instance Method Summary collapse
-
#initialize ⇒ Monitor
constructor
A new instance of Monitor.
- #lookup_by_asn(asn) ⇒ Object
- #lookup_by_country(country) ⇒ Object
- #lookup_by_tld(tld) ⇒ Object
- #process(entries) ⇒ Object
Constructor Details
Instance Attribute Details
#cache ⇒ Object (readonly)
Returns the value of attribute cache.
8 9 10 |
# File 'lib/urlhaus_monitor/monitor.rb', line 8 def cache @cache end |
#checker ⇒ Object (readonly)
Returns the value of attribute checker.
7 8 9 |
# File 'lib/urlhaus_monitor/monitor.rb', line 7 def checker @checker end |
Instance Method Details
#lookup_by_asn(asn) ⇒ Object
25 26 27 28 |
# File 'lib/urlhaus_monitor/monitor.rb', line 25 def lookup_by_asn(asn) entries = checker.lookup_by_asn(asn) process entries end |
#lookup_by_country(country) ⇒ Object
15 16 17 18 |
# File 'lib/urlhaus_monitor/monitor.rb', line 15 def lookup_by_country(country) entries = checker.lookup_by_country(country) process entries end |
#lookup_by_tld(tld) ⇒ Object
20 21 22 23 |
# File 'lib/urlhaus_monitor/monitor.rb', line 20 def lookup_by_tld(tld) entries = checker.lookup_by_tld(tld) process entries end |