Sha256: ef074bc2892300fd3254018b90e72b8654aac5f9efb613de66f027cc8e98e300

Contents?: true

Size: 397 Bytes

Versions: 1

Compression:

Stored size: 397 Bytes

Contents

require 'strava/strava_response'

module Strava
  module V1
    class Stream < StravaResponse
      attr_reader :coordinates, :heartrates, :times, :distances, :altitudes

      def initialize(jb)
        @coordinates = jb["latlng"]
        @heartrates = jb["heartrate"]
        @times = jb["time"]
        @distances = jb["distance"]
        @altitudes = jb["altitude"]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
strava-api-v2-0.1 lib/strava/v1/models/stream.rb