Class: Mihari::Structs::Censys::Service
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Mihari::Structs::Censys::Service
- Defined in:
- lib/mihari/structs/censys.rb
Class Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
33 34 35 36 37 38 |
# File 'lib/mihari/structs/censys.rb', line 33 def self.from_dynamic!(d) d = Types::Hash[d] new( port: d.fetch("port") ) end |