Class: Mihari::Structs::Censys::V3::Result

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_dynamic!(d) ⇒ Object



314
315
316
317
318
319
# File 'lib/mihari/structs/censys.rb', line 314

def from_dynamic!(d)
  new(
    hits: (d["hits"] || []).map { |x| Hit.from_dynamic!(x) },
    next_page_token: d["next_page_token"]
  )
end

Instance Method Details

#artifactsObject



309
310
311
# File 'lib/mihari/structs/censys.rb', line 309

def artifacts
  hits.map(&:artifact)
end