Sha256: 637c62c1137d913ae24d7a61e1e447891c677f46d0843c3aa24dc0b5f7e5ccdf

Contents?: true

Size: 411 Bytes

Versions: 3

Compression:

Stored size: 411 Bytes

Contents

module Shodanz
  class Client
    # Create a new client to connect to any of the APIs.
    def initialize
      @rest_api      = Shodanz.api.rest.new
      @streaming_api = Shodanz.api.streaming.new
      @exploits_api  = Shodanz.api.exploits.new  
    end

    def rest_api
      @rest_api
    end

    def streaming_api
      @streaming_api
    end

    def exploits_api
      @exploits_api
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shodanz-1.0.2 lib/shodanz/client.rb
shodanz-1.0.1 lib/shodanz/client.rb
shodanz-1.0.0 lib/shodanz/client.rb