Sha256: 4ece0e55195bcfc0b1bbc74bdb579433478ddff41037d42b5fb922cf3bf2c1e4
Contents?: true
Size: 779 Bytes
Versions: 32
Compression:
Stored size: 779 Bytes
Contents
#!/usr/bin/env ruby -w # encoding: UTF-8 # # = FileId.rb -- Fit4Ruby - FIT file processing library for Ruby # # Copyright (c) 2014 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' set_field_values(field_values) end end end
Version data entries
32 entries across 32 versions & 1 rubygems