Class: Mihari::Analyzers::SecurityTrails
- Includes:
- Mixins::Refang
- Defined in:
- lib/mihari/analyzers/securitytrails.rb
Constant Summary
Constants included from Mixins::Retriable
Instance Attribute Summary collapse
- #api_key ⇒ String? readonly
- #type ⇒ String? readonly
Attributes inherited from Base
Instance Method Summary collapse
- #artifacts ⇒ Object
-
#initialize(*args, **kwargs) ⇒ SecurityTrails
constructor
A new instance of SecurityTrails.
Methods included from Mixins::Refang
Methods inherited from Base
inherited, #normalized_artifacts, #run, #run_emitter, #source
Methods included from Mixins::Retriable
Methods included from Mixins::Configurable
#configuration_values, #configured?
Methods included from Mixins::AutonomousSystem
Constructor Details
#initialize(*args, **kwargs) ⇒ SecurityTrails
Returns a new instance of SecurityTrails.
18 19 20 21 22 23 24 25 |
# File 'lib/mihari/analyzers/securitytrails.rb', line 18 def initialize(*args, **kwargs) super @query = refang(query) @type = TypeChecker.type(query) @api_key = kwargs[:api_key] || Mihari.config.securitytrails_api_key end |
Instance Attribute Details
#api_key ⇒ String? (readonly)
16 17 18 |
# File 'lib/mihari/analyzers/securitytrails.rb', line 16 def api_key @api_key end |
#type ⇒ String? (readonly)
13 14 15 |
# File 'lib/mihari/analyzers/securitytrails.rb', line 13 def type @type end |
Instance Method Details
#artifacts ⇒ Object
27 28 29 |
# File 'lib/mihari/analyzers/securitytrails.rb', line 27 def artifacts search || [] end |