Sha256: d064043da7275f3cac3af15e68e0ca49b8d52f4e664bb70fe6bbfb8d87b5f24f
Contents?: true
Size: 550 Bytes
Versions: 1
Compression:
Stored size: 550 Bytes
Contents
# frozen_string_literal: true module Spyse class API def initialize(api_key = ENV["SPYSE_API_KEY"]) @api_key = api_key raise ArgumentError, "No api key has been found or provided!" unless @api_key end def as @as ||= Client::AS.new(@api_key) end def cert @cert ||= Client::Cert.new(@api_key) end def cve @cve ||= Client::CVE.new(@api_key) end def domain @domain ||= Client::Domain.new(@api_key) end def ip @ip ||= Client::IP.new(@api_key) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spysex-0.1.0 | lib/spyse/api.rb |