class Mihari::Structs::Censys::Hit

Public Class Methods

from_dynamic!(d) click to toggle source
# File lib/mihari/structs/censys.rb, line 36
def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    ip: d.fetch("ip"),
    location: Location.from_dynamic!(d.fetch("location")),
    autonomous_system: AutonomousSystem.from_dynamic!(d.fetch("autonomous_system"))
  )
end