Class: Mihari::Structs::BinaryEdge::Target

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#ipString (readonly)

Returns:

  • (String)


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

attribute :ip, Types::String

Class Method Details

.from_dynamic!(d) ⇒ Object

Parameters:

  • d (Hash)


15
16
17
18
19
20
# File 'lib/mihari/structs/binaryedge.rb', line 15

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