Class: PassiveDNS::PassiveDB
- Inherits:
-
Object
- Object
- PassiveDNS::PassiveDB
- Defined in:
- lib/passivedns/client/passivedb.rb
Overview
abstract class that all PassiveDNS::Provider should subclass
Direct Known Subclasses
PassiveDNS::Provider::BFK, PassiveDNS::Provider::CN360, PassiveDNS::Provider::Circl, PassiveDNS::Provider::DNSDB, PassiveDNS::Provider::Mnemonic, PassiveDNS::Provider::PassiveTotal, PassiveDNS::Provider::RiskIQ, PassiveDNS::Provider::TCPIPUtils, PassiveDNS::Provider::VirusTotal
Class Method Summary collapse
-
.config_section_name ⇒ Object
raises an exception that this should be implemented by the subclass.
-
.name ⇒ Object
raises an exception that this should be implemented by the subclass.
-
.option_letter ⇒ Object
raises an exception that this should be implemented by the subclass.
Instance Method Summary collapse
-
#lookup(label, limit = nil) ⇒ Object
raises an exception that this should be implemented by the subclass.
Class Method Details
.config_section_name ⇒ Object
raises an exception that this should be implemented by the subclass
10 11 12 |
# File 'lib/passivedns/client/passivedb.rb', line 10 def self.config_section_name name end |
.name ⇒ Object
raises an exception that this should be implemented by the subclass
5 6 7 |
# File 'lib/passivedns/client/passivedb.rb', line 5 def self.name raise "You should implement your own version of .name" end |
.option_letter ⇒ Object
raises an exception that this should be implemented by the subclass
15 16 17 |
# File 'lib/passivedns/client/passivedb.rb', line 15 def self.option_letter raise "You should pick a unique letter to serve as your database option letter for the command line option -d" end |
Instance Method Details
#lookup(label, limit = nil) ⇒ Object
raises an exception that this should be implemented by the subclass
20 21 22 |
# File 'lib/passivedns/client/passivedb.rb', line 20 def lookup(label, limit=nil) raise "You must implement the lookup function" end |