class Mihari::Structs::Censys::Response

Public Class Methods

from_dynamic!(d) click to toggle source
# File lib/mihari/structs/censys.rb, line 81
def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    code: d.fetch("code"),
    status: d.fetch("status"),
    result: Result.from_dynamic!(d.fetch("result"))
  )
end