Sha256: 96db24c8d6cf8e905536b4185b50ada6e85f4a27567d8b0b4491e7372c6c2b00
Contents?: true
Size: 804 Bytes
Versions: 6
Compression:
Stored size: 804 Bytes
Contents
#!/usr/bin/env ruby -w # encoding: UTF-8 # # = FileId.rb -- Fit4Ruby - FIT file processing library for Ruby # # Copyright (c) 2014, 2020 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' module Fit4Ruby class FileId < FitDataRecord def initialize(field_values = {}) super('file_id') @serial_number = 1234567890 # Ignore the sub-seconds to avoid problems when comparing records. @time_created = Time.at(Time.now.to_i) @manufacturer = 'development' @type = 'activity' @product = 0 set_field_values(field_values) end end end
Version data entries
6 entries across 6 versions & 1 rubygems