Class: Joule::TCX::Parser

Inherits:
Base::Parser show all
Defined in:
lib/joule/tcx/parser.rb

Instance Attribute Summary

Attributes inherited from Base::Parser

#workout

Instance Method Summary collapse

Methods inherited from Base::Parser

#initialize, #parse

Methods included from Calculator::PeakPowerCalculator

#calculate_peak_power_value, #calculate_peak_power_values

Methods included from 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_propertiesObject



14
15
16
17
# File 'lib/joule/tcx/parser.rb', line 14

def parse_properties
  @workout.properties = Joule::TCX::Properties.new
  @workout.properties.record_interval = 1
end

#parse_workoutObject



8
9
10
11
12
# File 'lib/joule/tcx/parser.rb', line 8

def parse_workout()
  @total_record_count = 0
  parse_activity("Biking")
  create_workout_marker()
end