Sha256: 70e2dc8a2258539a1f6c8eb9bca76f1d5c810ab3f73b8fcc1ad5595a566db338

Contents?: true

Size: 303 Bytes

Versions: 2

Compression:

Stored size: 303 Bytes

Contents

# frozen_string_literal: true

module DNSDB
  class API
    def initialize(api_key = ENV["DNSDB_API_KEY"])
      @api_key = api_key
    end

    def lookup
      @lookup ||= Clients::Lookup.new(@api_key)
    end

    def summarize
      @summarize ||= Clients::Summarize.new(@api_key)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dnsdb-0.1.2 lib/dnsdb/api.rb
dnsdb-0.1.0 lib/dnsdb/api.rb