class Mihari::Structs::Censys::Location

Public Class Methods

from_dynamic!(d) click to toggle source
# File lib/mihari/structs/censys.rb, line 22
def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    country: d["country"],
    country_code: d["country_code"]
  )
end