class Troo::Refresh

Public Class Methods

completed!() click to toggle source

@return [Troo::Refresh]

# File lib/troo/models/refresh.rb, line 12
def completed!
  all.map { |record| record.delete }
  create(last_performed_at: Time.now.to_s)
end
last_performed_at() click to toggle source

@return [String, NilClass]

# File lib/troo/models/refresh.rb, line 18
def last_performed_at
  first ? first.last_performed_at : nil
end
Also aliased as: last_performed_at?
last_performed_at?()
Alias for: last_performed_at