Class: Mihari::Analyzers::SecurityTrailsDomainFeed
- Defined in:
- lib/mihari/analyzers/securitytrails_domain_feed.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #artifacts ⇒ Object
-
#initialize(regexp, type: "registered", title: nil, description: nil, tags: []) ⇒ SecurityTrailsDomainFeed
constructor
A new instance of SecurityTrailsDomainFeed.
Methods inherited from Base
Methods included from Retriable
Methods included from Configurable
#configuration_status, #configured?
Constructor Details
#initialize(regexp, type: "registered", title: nil, description: nil, tags: []) ⇒ SecurityTrailsDomainFeed
Returns a new instance of SecurityTrailsDomainFeed.
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/mihari/analyzers/securitytrails_domain_feed.rb', line 14 def initialize(regexp, type: "registered", title: nil, description: nil, tags: []) super() @_regexp = regexp @type = type raise InvalidInputError, "#{@_regexp} is not a valid regexp" unless regexp raise InvalidInputError, "#{type} is not a valid type" unless valid_type? @title = title || "SecurityTrails domain feed lookup" @description = description || "Regexp = /#{@_regexp}/" @tags = end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
11 12 13 |
# File 'lib/mihari/analyzers/securitytrails_domain_feed.rb', line 11 def description @description end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
12 13 14 |
# File 'lib/mihari/analyzers/securitytrails_domain_feed.rb', line 12 def @tags end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
10 11 12 |
# File 'lib/mihari/analyzers/securitytrails_domain_feed.rb', line 10 def title @title end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/mihari/analyzers/securitytrails_domain_feed.rb', line 8 def type @type end |
Instance Method Details
#artifacts ⇒ Object
28 29 30 |
# File 'lib/mihari/analyzers/securitytrails_domain_feed.rb', line 28 def artifacts lookup || [] end |