Module: Ronin::DB::Model::LastScannedAt

Included in:
Address, HostName, OpenPort, URL
Defined in:
lib/ronin/db/model/last_scanned_at.rb

Overview

Mixin which adds a last_scanned_at attribute to a model.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#last_scanned_atTime?

Whenever the model was last scanned.

Returns:

  • (Time, nil)


# File 'lib/ronin/db/model/last_scanned_at.rb', line 28

Class Method Details

.included(model) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Adds the last_scanned_at attribute to the model.

Parameters:



43
44
45
46
47
# File 'lib/ronin/db/model/last_scanned_at.rb', line 43

def self.included(model)
  model.class_eval do
    attribute :last_scanned_at, :datetime
  end
end