Class: Shodanz::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/shodanz/client.rb

Instance Method Summary collapse

Constructor Details

#initializeClient

Create a new client to connect to any of the APIs.



4
5
6
7
8
# File 'lib/shodanz/client.rb', line 4

def initialize
  @rest_api      = Shodanz.api.rest.new
  @streaming_api = Shodanz.api.streaming.new
  @exploits_api  = Shodanz.api.exploits.new  
end

Instance Method Details

#exploits_apiObject



18
19
20
# File 'lib/shodanz/client.rb', line 18

def exploits_api
  @exploits_api
end

#rest_apiObject



10
11
12
# File 'lib/shodanz/client.rb', line 10

def rest_api
  @rest_api
end

#streaming_apiObject



14
15
16
# File 'lib/shodanz/client.rb', line 14

def streaming_api
  @streaming_api
end