Sha256: b4b168d543bc5f5b5f4c4d76a0a35f6046ec8f050c88e91f7ac6ae6f715bf972

Contents?: true

Size: 354 Bytes

Versions: 6

Compression:

Stored size: 354 Bytes

Contents

# frozen_string_literal: true

require "forwardable"

module UrlScan
  class API
    extend Forwardable

    attr_reader :pro

    def initialize(key = ENV["URLSCAN_API_KEY"])
      @community = Clients::Community.new(key)
      @pro = Clients::Pro.new(key)
    end

    def_delegators :@community, :submit, :result, :dom, :screenshot, :search
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
urlscan-0.8.0 lib/urlscan/api.rb
urlscan-0.7.0 lib/urlscan/api.rb
urlscan-0.6.0 lib/urlscan/api.rb
urlscan-0.5.0 lib/urlscan/api.rb
urlscan-0.4.1 lib/urlscan/api.rb
urlscan-0.4.0 lib/urlscan/api.rb