Class: Mihari::Structs::Censys::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)


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

attribute :next, Types::String.optional

#prevString? (readonly)

Returns:

  • (String, nil)


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

attribute :prev, Types::String.optional

Class Method Details

.from_dynamic!(d) ⇒ Object

Parameters:

  • d (Hash)


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