Module: Ronin::DB::Model::LastScannedAt
Overview
Mixin which adds a last_scanned_at
attribute to a model.
Instance Attribute Summary collapse
-
#last_scanned_at ⇒ Time?
Whenever the model was last scanned.
Class Method Summary collapse
-
.included(model) ⇒ Object
private
Adds the
last_scanned_at
attribute to the model.
Instance Attribute Details
#last_scanned_at ⇒ Time?
Whenever the model was last scanned.
|
# 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.
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 |