Sha256: 650c02eadc6dbe52a98ee20b79318c96bf2aee50289e908fa8899a602f05ef00

Contents?: true

Size: 617 Bytes

Versions: 1

Compression:

Stored size: 617 Bytes

Contents

#!/usr/bin/env ruby -w
# encoding: UTF-8
#
# = Record.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 Record < FitDataRecord

    def initialize(field_values = {})
      super('record')
      set_field_values(field_values)
    end

    def pace
      1000.0 / (@speed * 60.0)
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fit4ruby-0.0.2 lib/fit4ruby/Record.rb