Sha256: 4545e76ac3d0c5bb688a1e3cd40ddf50f9423ab5d2d5b95047400cf6c257bb15

Contents?: true

Size: 316 Bytes

Versions: 8

Compression:

Stored size: 316 Bytes

Contents

module RunbyPace

  class PaceRange
    attr_reader :fast, :slow

    def initialize(fast, slow)
      @fast = RunbyPace::PaceTime.new(fast)
      @slow = RunbyPace::PaceTime.new(slow)
    end

    def to_s
      if @fast == @slow
        "#{@fast}"
      else
        "#{@fast}-#{@slow}"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
runby_pace-0.2.64 lib/runby_pace/pace_range.rb
runby_pace-0.2.63 lib/runby_pace/pace_range.rb
runby_pace-0.2.62 lib/runby_pace/pace_range.rb
runby_pace-0.2.61 lib/runby_pace/pace_range.rb
runby_pace-0.2.60 lib/runby_pace/pace_range.rb
runby_pace-0.2.59 lib/runby_pace/pace_range.rb
runby_pace-0.2.58 lib/runby_pace/pace_range.rb
runby_pace-0.2.57 lib/runby_pace/pace_range.rb