Class: Mihari::Services::ArtifactGetter

Inherits:
Mihari::Service show all
Defined in:
lib/mihari/services/getters.rb

Instance Method Summary collapse

Methods inherited from Mihari::Service

call, #result, result

Instance Method Details

#call(id) ⇒ Mihari::Models::Artifact

Parameters:

  • id (Integer)

Returns:



11
12
13
14
15
16
17
18
19
# File 'lib/mihari/services/getters.rb', line 11

def call(id)
  Mihari::Models::Artifact.eager_load(
    :autonomous_system,
    :geolocation,
    :whois_record,
    :dns_records,
    :reverse_dns_names
  ).find id
end