module MiGA::Result::Dates

Helper module including date-specific functions for results.

Public Instance Methods

done_at() click to toggle source

Returns the end (done) date of processing as Time or nil if it doesn't exist.

# File lib/miga/result/dates.rb, line 18
def done_at
  date_at :done
end
running_time() click to toggle source

Time it took for the result to complete as Float in minutes.

# File lib/miga/result/dates.rb, line 24
def running_time
  a = started_at or return nil
  b = done_at or return nil
  (b - a).to_f / 60.0
end
started_at() click to toggle source

Returns the start date of processing as Time or nil if it doesn't exist.

# File lib/miga/result/dates.rb, line 11
def started_at
  date_at :start
end