Sha256: 618adb4430500570847c972f9f4a0d58ae9205415f18431eb1b11e66296fd718
Contents?: true
Size: 536 Bytes
Versions: 1
Compression:
Stored size: 536 Bytes
Contents
# frozen_string_literal: true module Mihari module Models # # Whois record model # class WhoisRecord < ActiveRecord::Base belongs_to :artifact class << self # # Build whois record # # @param [String] domain # @param [Mihari::Enrichers::Whois] enricher # # @return [WhoisRecord, nil] # def build_by_domain(domain, enricher: Enrichers::Whois.new) enricher.result(domain).value_or nil end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mihari-7.0.0 | lib/mihari/models/whois.rb |