lib/fit4ruby/FitFileEntity.rb in fit4ruby-0.0.5 vs lib/fit4ruby/FitFileEntity.rb in fit4ruby-0.0.6
- old
+ new
@@ -9,10 +9,11 @@
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
#
require 'fit4ruby/Activity'
+require 'fit4ruby/Monitoring_B'
module Fit4Ruby
# The FIT file is a generic container for all kinds of data. This could be
# activity data, config files, workout definitions, etc. All data is stored
@@ -41,9 +42,12 @@
end
case type
when 4, 'activity'
@top_level_record = Activity.new
@type = 'activity'
+ when 32, 'monitoring_b'
+ @top_level_record = Monitoring_B.new
+ @type = 'monitoring_b'
else
Log.error "Unsupported FIT file type #{type}"
return nil
end