Class: Mihari::Structs::Censys::V2::Links

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#nextString? (readonly)

Returns:

  • (String, nil)


159
# File 'lib/mihari/structs/censys.rb', line 159

attribute :next, Types::String.optional

#prevString? (readonly)

Returns:

  • (String, nil)


163
# File 'lib/mihari/structs/censys.rb', line 163

attribute :prev, Types::String.optional

Class Method Details

.from_dynamic!(d) ⇒ Object

Parameters:

  • d (Hash)


169
170
171
172
173
174
175
# File 'lib/mihari/structs/censys.rb', line 169

def from_dynamic!(d)
  d = Types::Hash[d]
  new(
    next: d["next"],
    prev: d["prev"]
  )
end