Sha256: 3b96e6bff83ac5e2f5926bb8428d6659406029901cce4db74550378c487c6b31
Contents?: true
Size: 790 Bytes
Versions: 19
Compression:
Stored size: 790 Bytes
Contents
#!/usr/bin/env ruby -w # encoding: UTF-8 # # = HeartRateZones.rb -- Fit4Ruby - FIT file processing library for Ruby # # Copyright (c) 2017 by Chris Schlaeger <cs@taskjuggler.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # require 'fit4ruby/FitDataRecord' require 'fit4ruby/RecordAggregator' module Fit4Ruby class HeartRateZones < FitDataRecord include RecordAggregator def initialize(field_values) super('heart_rate_zones') set_field_values(field_values) end def check(index) unless @lap_index == index Log.fatal "lap_index must be #{index}, not #{@lap_index}" end end end end
Version data entries
19 entries across 19 versions & 1 rubygems