Sha256: a181c3d7da7d32005b3d6bacb1d28a522d75cb9c6b45fd7a3f58f62cc1ca2bba
Contents?: true
Size: 481 Bytes
Versions: 10
Compression:
Stored size: 481 Bytes
Contents
# frozen_string_literal: true module Mihari module Services class ArtifactEnricher < Service # # @param [String] id # def call(id) artifact = Mihari::Models::Artifact.includes( :autonomous_system, :geolocation, :whois_record, :dns_records, :reverse_dns_names, :cpes, :ports ).find(id) artifact.enrich_all artifact.save end end end end
Version data entries
10 entries across 10 versions & 1 rubygems