lib/strava/api/endpoints/streams.rb
#
# Returns a set of streams for a segment effort completed by the authenticated athlete.
#
# @option options [String] :id
#   The identifier of the segment effort.
# @option options [Array[String]] :keys
#   The types of streams to return.
# @option options [Boolean] :key_by_type
#   Must be true.
#
Returns a set of streams for a segment effort completed by the authenticated athlete.
Returns a set of streams for a segment effort completed by the authenticated athlete .
def segment_effort_streams(id_or_options, options = {})
          id, options = parse_args(id_or_options, options)
          query = options.dup
          query[:key_by_type] = true unless options.key?(:key_by_type)
          query[:keys] = options[:keys].join(',') if options[:keys] && options[:keys].is_a?(Array)
          Strava::Models::StreamSet.new(get("segment_efforts/#{id}/streams", query))
        end
def segment_effort_streams ( id_or_options , options = { } ) id , options = parse_args ( id_or_options , options ) query = options . dup query [ :key_by_type ] = true unless options . key? ( :key_by_type ) query [ :keys ] = options [ :keys ] . join ( ',' ) if options [ :keys ] && options [ :keys ] . is_a? ( Array ) Strava :: Models :: StreamSet . new ( get ( "segment_efforts/#{id}/streams" , query ) ) end
Returns a set of streams for a segment effort completed by the authenticated athlete.
Returns a set of streams for a segment effort completed by the authenticated athlete .
id_or_options
options
:key_by_type Must be true.
: key_by_type Must be true .