class Mihari::Structs::Shodan::Location
Public Class Methods
from_dynamic!(d)
click to toggle source
# File lib/mihari/structs/shodan.rb, line 11 def self.from_dynamic!(d) d = Types::Hash[d] new( country_code: d.fetch("country_code"), country_name: d.fetch("country_name") ) end