Class: Mihari::Analyzers::Spyse

Inherits:
Base
  • Object
show all
Defined in:
lib/mihari/analyzers/spyse.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#ignore_old_artifacts, #ignore_threshold

Instance Method Summary collapse

Methods inherited from Base

inherited, #run, #run_emitter, #source

Methods included from Retriable

#retry_on_error

Methods included from Configurable

#configuration_values, #configured?

Constructor Details

#initialize(query, title: nil, description: nil, tags: [], type: "domain") ⇒ Spyse

Returns a new instance of Spyse.



11
12
13
14
15
16
17
18
19
20
# File 'lib/mihari/analyzers/spyse.rb', line 11

def initialize(query, title: nil, description: nil, tags: [], type: "domain")
  super()

  @query = query

  @title = title || "Spyse lookup"
  @description = description || "query = #{query}"
  @tags = tags
  @type = type
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



9
10
11
# File 'lib/mihari/analyzers/spyse.rb', line 9

def description
  @description
end

#queryObject (readonly)

Returns the value of attribute query.



9
10
11
# File 'lib/mihari/analyzers/spyse.rb', line 9

def query
  @query
end

#tagsObject (readonly)

Returns the value of attribute tags.



9
10
11
# File 'lib/mihari/analyzers/spyse.rb', line 9

def tags
  @tags
end

#titleObject (readonly)

Returns the value of attribute title.



9
10
11
# File 'lib/mihari/analyzers/spyse.rb', line 9

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



9
10
11
# File 'lib/mihari/analyzers/spyse.rb', line 9

def type
  @type
end

Instance Method Details

#artifactsObject



22
23
24
# File 'lib/mihari/analyzers/spyse.rb', line 22

def artifacts
  lookup || []
end