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

Version Path
fit4ruby-3.7.0 lib/fit4ruby/FileId.rb
fit4ruby-3.6.0 lib/fit4ruby/FileId.rb
fit4ruby-3.5.0 lib/fit4ruby/FileId.rb
fit4ruby-3.4.0 lib/fit4ruby/FileId.rb
fit4ruby-3.3.0 lib/fit4ruby/FileId.rb
fit4ruby-3.2.0 lib/fit4ruby/FileId.rb
fit4ruby-3.1.0 lib/fit4ruby/FileId.rb
fit4ruby-3.0.0 lib/fit4ruby/FileId.rb
fit4ruby-2.0.0 lib/fit4ruby/FileId.rb
fit4ruby-1.7.0 lib/fit4ruby/FileId.rb
fit4ruby-1.6.2 lib/fit4ruby/FileId.rb
fit4ruby-1.6.1 lib/fit4ruby/FileId.rb
fit4ruby-1.6.0 lib/fit4ruby/FileId.rb
fit4ruby-1.5.1 lib/fit4ruby/FileId.rb
fit4ruby-1.5.0 lib/fit4ruby/FileId.rb
fit4ruby-1.4.0 lib/fit4ruby/FileId.rb
fit4ruby-1.3.0 lib/fit4ruby/FileId.rb
fit4ruby-1.2.0 lib/fit4ruby/FileId.rb
fit4ruby-1.1.0 lib/fit4ruby/FileId.rb
fit4ruby-1.0.1 lib/fit4ruby/FileId.rb