Class: Joule::CSV::Parser

Inherits:
Base::Parser show all
Includes:
UnitsConversion
Defined in:
lib/joule/csv/parser.rb

Direct Known Subclasses

IBike::Parser, PowerTap::Parser

Instance Attribute Summary

Attributes inherited from Base::Parser

#workout

Instance Method Summary collapse

Methods included from UnitsConversion

#convert_distance, #convert_speed, #kilometers_per_hour_to_millimeters_per_second, #kilometers_to_millimeters, #miles_per_hour_to_millimeters_per_second, #miles_to_millimeters, #millimeters_per_second_to_kilometers_per_hour, #millimeters_per_second_to_miles_per_hour, #millimeters_to_kilometers, #millimeters_to_miles

Methods inherited from Base::Parser

#initialize, #parse, #parse_properties

Methods included from Joule::Calculator::PeakPowerCalculator

#calculate_peak_power_value, #calculate_peak_power_values

Methods included from Joule::Calculator::MarkerCalculator

#calculate_marker_averages, #calculate_marker_maximums, #calculate_marker_totals, #calculate_marker_training_metrics, #calculate_marker_values

Constructor Details

This class inherits a constructor from Joule::Base::Parser

Instance Method Details

#parse_workoutObject



6
7
8
9
# File 'lib/joule/csv/parser.rb', line 6

def parse_workout()
  parse_markers
  parse_data_points
end