Class: Mihari::Structs::Censys::Links
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Mihari::Structs::Censys::Links
- Defined in:
- lib/mihari/structs/censys.rb
Instance Attribute Summary collapse
- #next ⇒ String? readonly
- #prev ⇒ String? readonly
Class Method Summary collapse
Instance Attribute Details
#next ⇒ String? (readonly)
156 |
# File 'lib/mihari/structs/censys.rb', line 156 attribute :next, Types::String.optional |
#prev ⇒ String? (readonly)
160 |
# File 'lib/mihari/structs/censys.rb', line 160 attribute :prev, Types::String.optional |
Class Method Details
.from_dynamic!(d) ⇒ Object
166 167 168 169 170 171 172 |
# File 'lib/mihari/structs/censys.rb', line 166 def from_dynamic!(d) d = Types::Hash[d] new( next: d["next"], prev: d["prev"] ) end |