lib/runby_pace/pace.rb in runby_pace-0.6.90 vs lib/runby_pace/pace.rb in runby_pace-0.6.91
- old
+ new
@@ -1,8 +1,9 @@
module Runby
# Represents a pace consisting of a distance and a time in which that distance was covered
class Pace
attr_reader :time, :distance
+
def initialize(time, distance = '1K')
@time = Runby::RunbyTime.parse(time)
@distance = Runby::Distance.new(distance)
end