Class: Munna::Perform::ActiveRecordMethod
- Inherits:
-
Object
- Object
- Munna::Perform::ActiveRecordMethod
- Defined in:
- lib/munna/perform/active_record.rb
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize(target) ⇒ ActiveRecordMethod
constructor
A new instance of ActiveRecordMethod.
Constructor Details
#initialize(target) ⇒ ActiveRecordMethod
Returns a new instance of ActiveRecordMethod.
26 27 28 |
# File 'lib/munna/perform/active_record.rb', line 26 def initialize(target) @target = target end |
Instance Method Details
#all ⇒ Object
30 31 32 |
# File 'lib/munna/perform/active_record.rb', line 30 def all @target.maximum(:updated_at).to_i end |