Class: Mihari::Structs::Censys::Service
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Mihari::Structs::Censys::Service
- Defined in:
- lib/mihari/structs/censys.rb
Instance Attribute Summary collapse
- #port ⇒ Integer? readonly
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#port ⇒ Integer? (readonly)
73 |
# File 'lib/mihari/structs/censys.rb', line 73 attribute :port, Types::Int |
Class Method Details
.from_dynamic!(d) ⇒ Object
86 87 88 89 90 91 |
# File 'lib/mihari/structs/censys.rb', line 86 def from_dynamic!(d) d = Types::Hash[d] new( port: d.fetch("port") ) end |
Instance Method Details
#_port ⇒ Mihari::Port
78 79 80 |
# File 'lib/mihari/structs/censys.rb', line 78 def _port Models::Port.new(number: port) end |