Class: Mihari::Structs::Shodan::Location
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Mihari::Structs::Shodan::Location
- Defined in:
- lib/mihari/structs/shodan.rb
Class Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/mihari/structs/shodan.rb', line 10 def self.from_dynamic!(d) d = Types::Hash[d] new( country_code: d["country_code"], country_name: d["country_name"] ) end |