lib/onebusaway_sdk/resources/schedule_for_stop.rb
# frozen_string_literal: true module OnebusawaySDK module Resources class ScheduleForStop # Some parameter documentations has been truncated, see # {OnebusawaySDK::Models::ScheduleForStopRetrieveParams} for more details. # # Get schedule for a specific stop # # @overload retrieve(stop_id, date: nil, request_options: {}) # # @param stop_id [String] The stop id to request the schedule for, encoded directly in the URL # # @param date [Date] The date for which you want to request a schedule in the format YYYY-MM-DD (opti # # @param request_options [OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [OnebusawaySDK::Models::ScheduleForStopRetrieveResponse] # # @see OnebusawaySDK::Models::ScheduleForStopRetrieveParams def retrieve(stop_id, params = {}) parsed, options = OnebusawaySDK::ScheduleForStopRetrieveParams.dump_request(params) @client.request( method: :get, path: ["api/where/schedule-for-stop/%1$s.json", stop_id], query: parsed, model: OnebusawaySDK::Models::ScheduleForStopRetrieveResponse, options: options ) end # @api private # # @param client [OnebusawaySDK::Client] def initialize(client:) @client = client end end end end