Class: PassiveDNS::PassiveDB

Inherits:
Object
  • Object
show all
Defined in:
lib/passivedns/client/passivedb.rb

Overview

abstract class that all PassiveDNS::Provider should subclass

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.config_section_nameObject

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

.nameObject

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_letterObject

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