Module: Irrc::Parameter

Included in:
Irrd::Client, Whoisd::Client
Defined in:
lib/irrc/parameter.rb

Instance Method Summary collapse

Instance Method Details

#initialize(host, queue, &block) ⇒ Object

Public: Create a new IRRd / Whoisd client worker.

You can customize the logger by specifying a block.
The default logger is STDERR printer of more severe messages than INFO.

host - FQDN of IRR / Whois. IRR / Whois name is also accespted. queue - Queue object having query jobs.

IRR / Whois name is also accespted.

block - An optional block that can be used to customize the logger.

Examples

Irrc::Irrd::Client.new('jpirr.nic.ad.jp', queue) {|c|
  c.logger = Logger.new('irrc.log')
}


18
19
20
21
22
# File 'lib/irrc/parameter.rb', line 18

def initialize(host, queue, &block)
  self.host = host
  self.queue = queue
  instance_eval(&block) if block_given?
end