Sha256: e7bff704c424ea5ff2f99d6454405bb729a700a65cdd40389aa91ca989e1d851

Contents?: true

Size: 503 Bytes

Versions: 6

Compression:

Stored size: 503 Bytes

Contents

# frozen_string_literal: true

module SecurityTrails
  class API
    attr_reader :domain
    attr_reader :domains
    attr_reader :history
    attr_reader :ips

    def initialize(api_key = ENV["SECURITYTRAILS_API_KEY"])
      raise(ArgumentError, "'api_key' argument is required") unless api_key

      @domain   = Clients::Domain.new(api_key)
      @domains  = Clients::Domains.new(api_key)
      @history  = Clients::History.new(api_key)
      @ips      = Clients::IPs.new(api_key)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
securitytrails-0.1.5 lib/securitytrails/api.rb
securitytrails-0.1.4 lib/securitytrails/api.rb
securitytrails-0.1.3 lib/securitytrails/api.rb
securitytrails-0.1.2 lib/securitytrails/api.rb
securitytrails-0.1.1 lib/securitytrails/api.rb
securitytrails-0.1.0 lib/securitytrails/api.rb