Class: Mihari::Structs::VirusTotalIntelligence::ContextAttributes

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/mihari/structs/virustotal_intelligence.rb

Class Method Summary collapse

Class Method Details

.from_dynamic!(d) ⇒ Object



9
10
11
12
13
14
# File 'lib/mihari/structs/virustotal_intelligence.rb', line 9

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    url: d["url"]
  )
end