Sha256: 0c95a0b02ff943a8e4c427b8c176c3ff6a127cf384eda835aeb14a1bd77e9ccf

Contents?: true

Size: 515 Bytes

Versions: 5

Compression:

Stored size: 515 Bytes

Contents

module HRMParser
  class TrackPoint
    attr_accessor :lat, :lng, :altitude, :speed, :hr, :distance, :time, :cadence
    def initialize(opts = {:lat => nil, :lng => nil, :altitude => nil, :speed => nil, :hr => nil, :distance => nil, :cadence => nil, :time => Time.now})
      @lat = opts[:lat]
      @lng = opts[:lng]
      @altitude = opts[:altitude]
      @speed = opts[:speed]
      @hr = opts[:hr]
      @distance = opts[:distance]
      @time = opts[:time]
      @cadence = opts[:cadence]    
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
teich-hrmparser-0.2.1 lib/hrmparser/trackpoint.rb
teich-hrmparser-0.2.2 lib/hrmparser/trackpoint.rb
teich-hrmparser-0.3.0 lib/hrmparser/trackpoint.rb
teich-hrmparser-0.3.1 lib/hrmparser/trackpoint.rb
teich-hrmparser-0.4.0 lib/hrmparser/trackpoint.rb