class AreWeThereYet::Run

Attributes

id[R]

Public Instance Methods

finish(database) click to toggle source
# File lib/are_we_there_yet/run.rb, line 8
def finish(database)
  database[:runs].where(:id => id).update(:ended_at => Time.now.utc)
end
start(database) click to toggle source
# File lib/are_we_there_yet/run.rb, line 4
def start(database)
  @id = database[:runs].insert(:started_at => Time.now.utc)
end