lib/nike_plus/activity.rb
## Activity speed in kilometers per hour.
Activity speed in kilometers per hour.
Activity speed in kilometers per hour .
def kmh
      values = speed_values
      return nil unless values and values.any?
      avg = sum = 0.0
      values.each { |value| sum += value.to_f }
      avg = sum / values.size
    end
def kmh values = speed_values return nil unless values and values . any? avg = sum = 0.0 values . each { | value | sum += value . to_f } avg = sum / values . size end
Activity speed in kilometers per hour.
Activity speed in kilometers per hour .