Class: Mihari::Structs::Censys::Links

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

Class Method Summary collapse

Class Method Details

.from_dynamic!(d) ⇒ Object



64
65
66
67
68
69
70
# File 'lib/mihari/structs/censys.rb', line 64

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    next: d.fetch("next"),
    prev: d.fetch("prev")
  )
end