Class: Mihari::Structs::Censys::V2::Response
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Mihari::Structs::Censys::V2::Response
- Defined in:
- lib/mihari/structs/censys.rb
Instance Attribute Summary collapse
- #code ⇒ Integer readonly
- #result ⇒ Result readonly
- #status ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Integer (readonly)
222 |
# File 'lib/mihari/structs/censys.rb', line 222 attribute :code, Types::Int |
Class Method Details
.from_dynamic!(d) ⇒ Object
240 241 242 243 244 245 246 247 |
# File 'lib/mihari/structs/censys.rb', line 240 def from_dynamic!(d) d = Types::Hash[d] new( code: d.fetch("code"), status: d.fetch("status"), result: Result.from_dynamic!(d.fetch("result")) ) end |
Instance Method Details
#artifacts ⇒ Object
232 233 234 |
# File 'lib/mihari/structs/censys.rb', line 232 def artifacts result.artifacts end |