Skip to content

Commit

Permalink
Fetch ride 'stream' data from Strava. Stream data contains collection…
Browse files Browse the repository at this point in the history
…s of all the ride raw data (altitude, watts, distance, etc).
  • Loading branch information
anolson committed Mar 27, 2011
1 parent 6ece846 commit 6f065d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/strava-api/ride.rb
Expand Up @@ -51,5 +51,9 @@ def show
def efforts
@connection.ride_efforts(self.id)
end

def streams
@connection.ride_streams(self.id)
end
end #class Ride
end
5 changes: 5 additions & 0 deletions lib/strava-api/rides.rb
Expand Up @@ -35,5 +35,10 @@ def ride_efforts(id)

result["efforts"].collect {|effort| Effort.new(self, effort)}
end

def ride_streams(id)
result = call("streams/#{id}", nil, {})
Streams.new(self, result.to_hash)
end
end
end

0 comments on commit 6f065d5

Please sign in to comment.