Class: Mihari::Structs::Censys::Response

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

Class Method Summary collapse

Class Method Details

.from_dynamic!(d) ⇒ Object



95
96
97
98
99
100
101
102
# File 'lib/mihari/structs/censys.rb', line 95

def self.from_dynamic!(d)
  d = Types::Hash[d]
  new(
    code: d.fetch("code"),
    status: d.fetch("status"),
    result: Result.from_dynamic!(d.fetch("result"))
  )
end