Sha256: f297f116c90b65bcaf7911a0445be614bfd77bf274ec8ddd02cf8d939376e6fb
Contents?: true
Size: 373 Bytes
Versions: 5
Compression:
Stored size: 373 Bytes
Contents
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 def to_s "#{time} per #{distance.pluralized_uom}" end end end
Version data entries
5 entries across 5 versions & 1 rubygems