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

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_dynamic!(d) ⇒ Links

Parameters:

  • d (Hash)

Returns:



225
226
227
228
229
230
231
# File 'lib/mihari/structs/censys.rb', line 225

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

Instance Method Details

#nextString?

Returns:

  • (String, nil)


208
209
210
# File 'lib/mihari/structs/censys.rb', line 208

def next
  attributes[:next]
end

#prevString?

Returns:

  • (String, nil)


215
216
217
# File 'lib/mihari/structs/censys.rb', line 215

def prev
  attributes[:prev]
end