Class: Mihari::Structs::BinaryEdge::Event

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#targetTarget (readonly)

Returns:



27
# File 'lib/mihari/structs/binaryedge.rb', line 27

attribute :target, Target

Class Method Details

.from_dynamic!(d) ⇒ Object

Parameters:

  • d (Hash)


33
34
35
36
37
38
# File 'lib/mihari/structs/binaryedge.rb', line 33

def from_dynamic!(d)
  d = Types::Hash[d]
  new(
    target: Target.from_dynamic!(d.fetch("target"))
  )
end