Class: Mihari::Structs::VirusTotalIntelligence::Response
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Mihari::Structs::VirusTotalIntelligence::Response
- Defined in:
- lib/mihari/structs/virustotal_intelligence.rb
Class Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
66 67 68 69 70 71 72 |
# File 'lib/mihari/structs/virustotal_intelligence.rb', line 66 def self.from_dynamic!(d) d = Types::Hash[d] new( meta: Meta.from_dynamic!(d.fetch("meta")), data: d.fetch("data").map { |x| Datum.from_dynamic!(x) } ) end |