lib/strava/api/endpoints/segments.rb
#
# Stars/Unstars the given segment for the authenticated athlete.
#
# @option options [String] :id
#   The identifier of the segment to star.
# @option options [Boolean] :starred
#   If true, star the segment; if false, unstar the segment.
#
Stars/Unstars the given segment for the authenticated athlete.
Stars / Unstars the given segment for the authenticated athlete .
def star_segment(id_or_options, options = {})
          id, options = parse_args(id_or_options, options)
          throw ArgumentError.new('Required argument :starred missing') if options[:starred].nil?
          Strava::Models::Segment.new(put("segments/#{id}/starred", options))
        end
def star_segment ( id_or_options , options = { } ) id , options = parse_args ( id_or_options , options ) throw ArgumentError . new ( 'Required argument :starred missing' ) if options [ :starred ] . nil? Strava :: Models :: Segment . new ( put ( "segments/#{id}/starred" , options ) ) end
Stars/Unstars the given segment for the authenticated athlete.
Stars / Unstars the given segment for the authenticated athlete .
id_or_options
options
:starred If true, star the segment; if false, unstar the segment.
: starred If true star the segment ; if false unstar the segment .