Class: Mihari::TheHive
- Inherits:
-
Object
- Object
- Mihari::TheHive
- Defined in:
- lib/mihari/the_hive.rb,
lib/mihari/the_hive/base.rb,
lib/mihari/the_hive/alert.rb,
lib/mihari/the_hive/artifact.rb
Defined Under Namespace
Classes: Alert, Artifact, Base
Instance Attribute Summary collapse
-
#alert ⇒ Object
readonly
Returns the value of attribute alert.
-
#artifact ⇒ Object
readonly
Returns the value of attribute artifact.
Instance Method Summary collapse
-
#initialize ⇒ TheHive
constructor
A new instance of TheHive.
- #valid? ⇒ true, false
Constructor Details
Instance Attribute Details
#alert ⇒ Object (readonly)
Returns the value of attribute alert.
9 10 11 |
# File 'lib/mihari/the_hive.rb', line 9 def alert @alert end |
#artifact ⇒ Object (readonly)
Returns the value of attribute artifact.
8 9 10 |
# File 'lib/mihari/the_hive.rb', line 8 def artifact @artifact end |
Instance Method Details
#valid? ⇒ true, false
17 18 19 |
# File 'lib/mihari/the_hive.rb', line 17 def valid? api_endpont? && api_key? && ping? end |