Class: DNSDB::API
- Inherits:
-
Object
- Object
- DNSDB::API
- Defined in:
- lib/dnsdb/api.rb
Instance Method Summary collapse
-
#initialize(api_key = ENV["DNSDB_API_KEY"]) ⇒ API
constructor
A new instance of API.
- #lookup ⇒ Object
- #summarize ⇒ Object
Constructor Details
#initialize(api_key = ENV["DNSDB_API_KEY"]) ⇒ API
Returns a new instance of API.
5 6 7 |
# File 'lib/dnsdb/api.rb', line 5 def initialize(api_key = ENV["DNSDB_API_KEY"]) @api_key = api_key end |