Class: Munna::Perform::ActiveRecordMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/munna/perform/active_record.rb

Instance Method Summary collapse

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

#allObject



30
31
32
# File 'lib/munna/perform/active_record.rb', line 30

def all
  @target.maximum(:updated_at).to_i
end