Class: Mihari::Structs::GooglePublicDNS::Response
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Mihari::Structs::GooglePublicDNS::Response
- Defined in:
- lib/mihari/structs/google_public_dns.rb
Class Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
33 34 35 36 37 38 |
# File 'lib/mihari/structs/google_public_dns.rb', line 33 def self.from_dynamic!(d) d = Types::Hash[d] new( answers: d.fetch("Answer", []).map { |x| Answer.from_dynamic!(x) } ) end |