Class: Mihari::TheHive

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeTheHive

Returns a new instance of TheHive.



11
12
13
14
# File 'lib/mihari/the_hive.rb', line 11

def initialize
  @artifact = Artifact.new
  @alert = Alert.new
end

Instance Attribute Details

#alertObject (readonly)

Returns the value of attribute alert.



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

def alert
  @alert
end

#artifactObject (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

Returns:

  • (true, false)


17
18
19
# File 'lib/mihari/the_hive.rb', line 17

def valid?
  api_endpont? && api_key? && ping?
end