Sha256: 44f224665c29aa2de6e82d624fad7fa22a34ab3b6c596e06c9d221c9d53dc6f0
Contents?: true
Size: 616 Bytes
Versions: 2
Compression:
Stored size: 616 Bytes
Contents
require 'vulndbhq/client' module VulnDBHQ class << self include VulnDBHQ::Configurable def client if @client && @client.cache_key == options.hash @client else @client = VulnDBHQ::Client.new(options) end end # Delegate to a VulnDBHQ::Client def respond_to?(method, include_private=false) self.client.respond_to?(method, include_private) || super end private def method_missing(method, *args, &block) return super unless self.client.respond_to?(method) self.client.send(method, *args, &block) end end end VulnDBHQ.setup
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vulndbhq-0.1.1 | lib/vulndbhq.rb |
vulndbhq-0.1.0 | lib/vulndbhq.rb |