lib/fit4ruby/FitFileEntity.rb in fit4ruby-2.0.0 vs lib/fit4ruby/FitFileEntity.rb in fit4ruby-3.0.0

- old
+ new

@@ -1,19 +1,20 @@ #!/usr/bin/env ruby -w # encoding: UTF-8 # # = FitMessageRecord.rb -- Fit4Ruby - FIT file processing library for Ruby # -# Copyright (c) 2015 by Chris Schlaeger <cs@taskjuggler.org> +# Copyright (c) 2015, 2016, 2017, 2018 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/Activity' require 'fit4ruby/Monitoring_B' +require 'fit4ruby/GlobalFitMessage' 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 @@ -23,14 +24,15 @@ # us. Since we already need to have gathered some information at this point, # we use this utility class to store the read data until we know what Ruby # objec we need to use to store it for later consumption. class FitFileEntity - attr_reader :top_level_record + attr_reader :top_level_record, :developer_fit_messages # Create a FitFileEntity. def initialize @top_level_record = nil + @developer_fit_messages = GlobalFitMessageList.new end # Set what kind of FIT file we are dealing with. # @return The Ruby object that will hold the content of the FIT file. It's # a derivative of FitDataRecord.