def query(host, objects, options={})
      raise ArgumentError, 'host is required.' unless host
      fqdn = Irrc::Irr.host(host) || host

      Array(objects).map {|object|
        queue(fqdn) << Irrc::Query.new(object, options)
      }
    end
def query(host, objects, options={})
      raise ArgumentError, 'host is required.' unless host
      fqdn = Irrc::Irr.host(host) || host

      Array(objects).map {|object|
        queue(fqdn) << Irrc::Query.new(object, options)
      }
    end
Public: Create a new IRR / Whois client worker manager.
         You can customize the logger by specifying a block.
         The default logger is STDERR printer of more severe messages than INFO.

 threads - Number of threads to resolve prefixes per IRR / Whois server. (default: 1)
 block   - An optional block that can be used to customize the logger.

 Examples

   Irrc::Client.new(2) {|c|
     c.logger = Logger.new('irrc.log')
   }
 Public: Enqueue an IRR / Whois query.

 host    - FQDN of IRR / Whois server. IRR name is also acceptable. (eg: jpirr)
 objects - IRR objects to extract. (eg: as-set, route-set, aut-num object)
           Array form is also acceptable for multiple objects.
 options - The Hash options to pass to IRR. (default: {procotol: [:ipv4, :ipv6]})
           :source   - Specify authoritative IRR source names.
                       If not given, any source will be accepted. (optional)
           :protocol - :ipv4, :ipv6 or [:ipv4, :ipv6]
                       A String or Symbol of protcol name is acceptable. (optional)

 Examples

   client.query :jpirr, 'AS-JPNIC', source: :jpirr, protocol: :ipv4
   client.query :jpirr, 'AS-JPNIC', source: [:jpirr, :radb]