Class: Calcpace

Inherits:
Object
  • Object
show all
Includes:
Calculator, Checker, Converter
Defined in:
lib/calcpace.rb,
lib/calcpace/errors.rb,
lib/calcpace/version.rb

Overview

Main class to calculate velocity, pace, time, distance and velocity

Defined Under Namespace

Classes: Error, InvalidTimeFormatError, NonPositiveInputError

Constant Summary collapse

VERSION =
'1.5.4'

Instance Method Summary collapse

Methods included from Converter

#constant, #convert, #convert_to_clocktime, #convert_to_seconds, #list_all, #list_distance, #list_speed

Methods included from Checker

#check_positive, #check_time

Methods included from Calculator

#checked_distance, #checked_pace, #checked_time, #checked_velocity, #clock_pace, #clock_time, #clock_velocity, #distance, #pace, #time, #velocity

Constructor Details

#initializeCalcpace

Returns a new instance of Calcpace.



14
# File 'lib/calcpace.rb', line 14

def initialize; end