Sha256: 10179d99ce0ec9fe3404636d5181bd55eb87ca51dda7ff13956313d8b87afa7d

Contents?: true

Size: 250 Bytes

Versions: 1

Compression:

Stored size: 250 Bytes

Contents

require 'strava/v1/models/stream'

module Strava
  module V1
    module StreamRequest
      def streams_path(id)
        "streams/#{id}"
      end

      def stream(id)
        Stream.new(self.fetch(streams_path(id), nil))
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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