module F4R

Constants

FIT_PROFILE_REV

Fit Profile revision for the messages and types in the {Config.directory}.

Log

Single F4RLogger instance

VERSION

Public Class Methods

decode(file) click to toggle source

@param [String] file path to file to be decoded.

# File lib/f4r.rb, line 1729
def self.decode(file)
  Log.info "Reading #{file} file."
  Decoder.decode(file)
end
encode(file, records, source = nil) click to toggle source

@param [String] file path for new FIT file @param [Hash,Registry] records

@param [String] source

Optional source FIT file to be used as a reference for
structuring the binary data.
# File lib/f4r.rb, line 1742
def self.encode(file, records, source = nil)
  Log.info "Writing to #{file} file."
  Encoder.encode(file, records, source)
end