Class: Mihari::Clients::Base
- Inherits:
-
Object
- Object
- Mihari::Clients::Base
show all
- Defined in:
- lib/mihari/clients/base.rb
Overview
Base class for API clients
Direct Known Subclasses
CIRCL, Censys, Crtsh, DNSTwister, Fofa, GooglePublicDNS, GreyNoise, HunterHow, MISP, MMDB, OTX, Onyphe, PassiveTotal, PulseDive, SecurityTrails, Shodan, ShodanInternetDB, TheHive, Urlscan, Validin, VirusTotal, Yeti, ZoomEye
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(base_url, headers: {}, pagination_interval: Mihari.config.pagination_interval, timeout: nil) ⇒ Base
27
28
29
30
31
32
|
# File 'lib/mihari/clients/base.rb', line 27
def initialize(base_url, headers: {}, pagination_interval: Mihari.config., timeout: nil)
@base_url = base_url
= || {}
=
@timeout = timeout
end
|
Instance Attribute Details
#base_url ⇒ String
10
11
12
|
# File 'lib/mihari/clients/base.rb', line 10
def base_url
@base_url
end
|
13
14
15
|
# File 'lib/mihari/clients/base.rb', line 13
def
end
|
16
17
18
|
# File 'lib/mihari/clients/base.rb', line 16
def
end
|
#timeout ⇒ Integer?
19
20
21
|
# File 'lib/mihari/clients/base.rb', line 19
def timeout
@timeout
end
|