Module: TsJsonApi::Requestor::Schedule::ClassMethods

Defined in:
lib/ts_json_api/requestor/schedule.rb

Instance Method Summary collapse

Instance Method Details

#schedule_for_race(race_id) ⇒ Object



8
9
10
# File 'lib/ts_json_api/requestor/schedule.rb', line 8

def schedule_for_race(race_id)
	send_json_request_and_deliver_response "races/#{race_id}-schedule", "weekendschedule/#{race_id}"
end

#schedule_for_season(race_season, series_id) ⇒ Object



12
13
14
# File 'lib/ts_json_api/requestor/schedule.rb', line 12

def schedule_for_season(race_season, series_id)
	send_json_request_and_deliver_response "#{race_season}/#{series_id}/schedule", "weekendschedule/?race_season=#{race_season}&series_id=#{series_id}"
end