Class: RunbyPace::PaceRange

Inherits:
Object
  • Object
show all
Defined in:
lib/runby_pace/pace_range.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fast, slow) ⇒ PaceRange

Returns a new instance of PaceRange.



6
7
8
9
# File 'lib/runby_pace/pace_range.rb', line 6

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

Instance Attribute Details

#fast ⇒ Object (readonly)

Returns the value of attribute fast.



4
5
6
# File 'lib/runby_pace/pace_range.rb', line 4

def fast
  @fast
end

#slow ⇒ Object (readonly)

Returns the value of attribute slow.



4
5
6
# File 'lib/runby_pace/pace_range.rb', line 4

def slow
  @slow
end

Instance Method Details

#to_s ⇒ Object



11
12
13
# File 'lib/runby_pace/pace_range.rb', line 11

def to_s
  "#{@fast}-#{@slow}"
end