class Mihari::Structs::Shodan::Result

Public Class Methods

from_dynamic!(d) click to toggle source
# File lib/mihari/structs/shodan.rb, line 43
def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    matches: d.fetch("matches", []).map { |x| Match.from_dynamic!(x) },
    total: d.fetch("total")
  )
end