onebusaway-sdk 0.1.0.pre.alpha.203
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +124 -0
- data/lib/onebusaway-sdk/base_client.rb +483 -0
- data/lib/onebusaway-sdk/base_model.rb +1188 -0
- data/lib/onebusaway-sdk/base_page.rb +40 -0
- data/lib/onebusaway-sdk/client.rb +181 -0
- data/lib/onebusaway-sdk/errors.rb +187 -0
- data/lib/onebusaway-sdk/extern.rb +10 -0
- data/lib/onebusaway-sdk/models/agencies_with_coverage_list_params.rb +18 -0
- data/lib/onebusaway-sdk/models/agencies_with_coverage_list_response.rb +84 -0
- data/lib/onebusaway-sdk/models/agency_retrieve_params.rb +18 -0
- data/lib/onebusaway-sdk/models/agency_retrieve_response.rb +151 -0
- data/lib/onebusaway-sdk/models/arrival_and_departure_list_params.rb +51 -0
- data/lib/onebusaway-sdk/models/arrival_and_departure_list_response.rb +767 -0
- data/lib/onebusaway-sdk/models/arrival_and_departure_retrieve_params.rb +60 -0
- data/lib/onebusaway-sdk/models/arrival_and_departure_retrieve_response.rb +751 -0
- data/lib/onebusaway-sdk/models/block_retrieve_params.rb +18 -0
- data/lib/onebusaway-sdk/models/block_retrieve_response.rb +205 -0
- data/lib/onebusaway-sdk/models/config_retrieve_params.rb +18 -0
- data/lib/onebusaway-sdk/models/config_retrieve_response.rb +331 -0
- data/lib/onebusaway-sdk/models/current_time_retrieve_params.rb +18 -0
- data/lib/onebusaway-sdk/models/current_time_retrieve_response.rb +67 -0
- data/lib/onebusaway-sdk/models/references.rb +1071 -0
- data/lib/onebusaway-sdk/models/report_problem_with_stop_retrieve_params.rb +117 -0
- data/lib/onebusaway-sdk/models/report_problem_with_trip_retrieve_params.rb +180 -0
- data/lib/onebusaway-sdk/models/response_wrapper.rb +37 -0
- data/lib/onebusaway-sdk/models/route_ids_for_agency_list_params.rb +18 -0
- data/lib/onebusaway-sdk/models/route_ids_for_agency_list_response.rb +45 -0
- data/lib/onebusaway-sdk/models/route_retrieve_params.rb +18 -0
- data/lib/onebusaway-sdk/models/route_retrieve_response.rb +149 -0
- data/lib/onebusaway-sdk/models/routes_for_agency_list_params.rb +18 -0
- data/lib/onebusaway-sdk/models/routes_for_agency_list_response.rb +156 -0
- data/lib/onebusaway-sdk/models/routes_for_location_list_params.rb +70 -0
- data/lib/onebusaway-sdk/models/routes_for_location_list_response.rb +162 -0
- data/lib/onebusaway-sdk/models/schedule_for_route_retrieve_params.rb +30 -0
- data/lib/onebusaway-sdk/models/schedule_for_route_retrieve_response.rb +453 -0
- data/lib/onebusaway-sdk/models/schedule_for_stop_retrieve_params.rb +30 -0
- data/lib/onebusaway-sdk/models/schedule_for_stop_retrieve_response.rb +244 -0
- data/lib/onebusaway-sdk/models/search_for_route_list_params.rb +36 -0
- data/lib/onebusaway-sdk/models/search_for_route_list_response.rb +166 -0
- data/lib/onebusaway-sdk/models/search_for_stop_list_params.rb +36 -0
- data/lib/onebusaway-sdk/models/search_for_stop_list_response.rb +161 -0
- data/lib/onebusaway-sdk/models/shape_retrieve_params.rb +18 -0
- data/lib/onebusaway-sdk/models/shape_retrieve_response.rb +70 -0
- data/lib/onebusaway-sdk/models/stop_ids_for_agency_list_params.rb +18 -0
- data/lib/onebusaway-sdk/models/stop_ids_for_agency_list_response.rb +45 -0
- data/lib/onebusaway-sdk/models/stop_retrieve_params.rb +18 -0
- data/lib/onebusaway-sdk/models/stop_retrieve_response.rb +144 -0
- data/lib/onebusaway-sdk/models/stops_for_agency_list_params.rb +18 -0
- data/lib/onebusaway-sdk/models/stops_for_agency_list_response.rb +146 -0
- data/lib/onebusaway-sdk/models/stops_for_location_list_params.rb +74 -0
- data/lib/onebusaway-sdk/models/stops_for_location_list_response.rb +161 -0
- data/lib/onebusaway-sdk/models/stops_for_route_list_params.rb +40 -0
- data/lib/onebusaway-sdk/models/stops_for_route_list_response.rb +253 -0
- data/lib/onebusaway-sdk/models/trip_detail_retrieve_params.rb +86 -0
- data/lib/onebusaway-sdk/models/trip_detail_retrieve_response.rb +561 -0
- data/lib/onebusaway-sdk/models/trip_for_vehicle_retrieve_params.rb +65 -0
- data/lib/onebusaway-sdk/models/trip_for_vehicle_retrieve_response.rb +561 -0
- data/lib/onebusaway-sdk/models/trip_retrieve_params.rb +18 -0
- data/lib/onebusaway-sdk/models/trip_retrieve_response.rb +160 -0
- data/lib/onebusaway-sdk/models/trips_for_location_list_params.rb +93 -0
- data/lib/onebusaway-sdk/models/trips_for_location_list_response.rb +572 -0
- data/lib/onebusaway-sdk/models/trips_for_route_list_params.rb +52 -0
- data/lib/onebusaway-sdk/models/trips_for_route_list_response.rb +559 -0
- data/lib/onebusaway-sdk/models/vehicles_for_agency_list_params.rb +29 -0
- data/lib/onebusaway-sdk/models/vehicles_for_agency_list_response.rb +529 -0
- data/lib/onebusaway-sdk/pooled_net_requester.rb +170 -0
- data/lib/onebusaway-sdk/request_options.rb +115 -0
- data/lib/onebusaway-sdk/resources/agencies_with_coverage.rb +31 -0
- data/lib/onebusaway-sdk/resources/agency.rb +32 -0
- data/lib/onebusaway-sdk/resources/arrival_and_departure.rb +71 -0
- data/lib/onebusaway-sdk/resources/block.rb +32 -0
- data/lib/onebusaway-sdk/resources/config.rb +30 -0
- data/lib/onebusaway-sdk/resources/current_time.rb +30 -0
- data/lib/onebusaway-sdk/resources/report_problem_with_stop.rb +44 -0
- data/lib/onebusaway-sdk/resources/report_problem_with_trip.rb +54 -0
- data/lib/onebusaway-sdk/resources/route.rb +32 -0
- data/lib/onebusaway-sdk/resources/route_ids_for_agency.rb +32 -0
- data/lib/onebusaway-sdk/resources/routes_for_agency.rb +32 -0
- data/lib/onebusaway-sdk/resources/routes_for_location.rb +44 -0
- data/lib/onebusaway-sdk/resources/schedule_for_route.rb +37 -0
- data/lib/onebusaway-sdk/resources/schedule_for_stop.rb +37 -0
- data/lib/onebusaway-sdk/resources/search_for_route.rb +36 -0
- data/lib/onebusaway-sdk/resources/search_for_stop.rb +36 -0
- data/lib/onebusaway-sdk/resources/shape.rb +32 -0
- data/lib/onebusaway-sdk/resources/stop.rb +32 -0
- data/lib/onebusaway-sdk/resources/stop_ids_for_agency.rb +32 -0
- data/lib/onebusaway-sdk/resources/stops_for_agency.rb +32 -0
- data/lib/onebusaway-sdk/resources/stops_for_location.rb +44 -0
- data/lib/onebusaway-sdk/resources/stops_for_route.rb +38 -0
- data/lib/onebusaway-sdk/resources/trip.rb +32 -0
- data/lib/onebusaway-sdk/resources/trip_details.rb +47 -0
- data/lib/onebusaway-sdk/resources/trip_for_vehicle.rb +45 -0
- data/lib/onebusaway-sdk/resources/trips_for_location.rb +48 -0
- data/lib/onebusaway-sdk/resources/trips_for_route.rb +41 -0
- data/lib/onebusaway-sdk/resources/vehicles_for_agency.rb +36 -0
- data/lib/onebusaway-sdk/util.rb +512 -0
- data/lib/onebusaway-sdk/version.rb +5 -0
- data/lib/onebusaway-sdk.rb +116 -0
- data/manifest.yaml +13 -0
- data/rbi/lib/onebusaway-sdk/base_client.rbi +162 -0
- data/rbi/lib/onebusaway-sdk/base_model.rbi +478 -0
- data/rbi/lib/onebusaway-sdk/base_page.rbi +39 -0
- data/rbi/lib/onebusaway-sdk/client.rbi +154 -0
- data/rbi/lib/onebusaway-sdk/errors.rbi +145 -0
- data/rbi/lib/onebusaway-sdk/extern.rbi +7 -0
- data/rbi/lib/onebusaway-sdk/models/agencies_with_coverage_list_params.rbi +18 -0
- data/rbi/lib/onebusaway-sdk/models/agencies_with_coverage_list_response.rbi +131 -0
- data/rbi/lib/onebusaway-sdk/models/agency_retrieve_params.rbi +18 -0
- data/rbi/lib/onebusaway-sdk/models/agency_retrieve_response.rbi +210 -0
- data/rbi/lib/onebusaway-sdk/models/arrival_and_departure_list_params.rbi +60 -0
- data/rbi/lib/onebusaway-sdk/models/arrival_and_departure_list_response.rbi +914 -0
- data/rbi/lib/onebusaway-sdk/models/arrival_and_departure_retrieve_params.rbi +87 -0
- data/rbi/lib/onebusaway-sdk/models/arrival_and_departure_retrieve_response.rbi +857 -0
- data/rbi/lib/onebusaway-sdk/models/block_retrieve_params.rbi +18 -0
- data/rbi/lib/onebusaway-sdk/models/block_retrieve_response.rbi +383 -0
- data/rbi/lib/onebusaway-sdk/models/config_retrieve_params.rbi +18 -0
- data/rbi/lib/onebusaway-sdk/models/config_retrieve_response.rbi +389 -0
- data/rbi/lib/onebusaway-sdk/models/current_time_retrieve_params.rbi +18 -0
- data/rbi/lib/onebusaway-sdk/models/current_time_retrieve_response.rbi +95 -0
- data/rbi/lib/onebusaway-sdk/models/references.rbi +1265 -0
- data/rbi/lib/onebusaway-sdk/models/report_problem_with_stop_retrieve_params.rbi +101 -0
- data/rbi/lib/onebusaway-sdk/models/report_problem_with_trip_retrieve_params.rbi +157 -0
- data/rbi/lib/onebusaway-sdk/models/response_wrapper.rbi +47 -0
- data/rbi/lib/onebusaway-sdk/models/route_ids_for_agency_list_params.rbi +18 -0
- data/rbi/lib/onebusaway-sdk/models/route_ids_for_agency_list_response.rbi +68 -0
- data/rbi/lib/onebusaway-sdk/models/route_retrieve_params.rbi +18 -0
- data/rbi/lib/onebusaway-sdk/models/route_retrieve_response.rbi +200 -0
- data/rbi/lib/onebusaway-sdk/models/routes_for_agency_list_params.rbi +18 -0
- data/rbi/lib/onebusaway-sdk/models/routes_for_agency_list_response.rbi +210 -0
- data/rbi/lib/onebusaway-sdk/models/routes_for_location_list_params.rbi +90 -0
- data/rbi/lib/onebusaway-sdk/models/routes_for_location_list_response.rbi +220 -0
- data/rbi/lib/onebusaway-sdk/models/schedule_for_route_retrieve_params.rbi +34 -0
- data/rbi/lib/onebusaway-sdk/models/schedule_for_route_retrieve_response.rbi +675 -0
- data/rbi/lib/onebusaway-sdk/models/schedule_for_stop_retrieve_params.rbi +34 -0
- data/rbi/lib/onebusaway-sdk/models/schedule_for_stop_retrieve_response.rbi +457 -0
- data/rbi/lib/onebusaway-sdk/models/search_for_route_list_params.rbi +43 -0
- data/rbi/lib/onebusaway-sdk/models/search_for_route_list_response.rbi +220 -0
- data/rbi/lib/onebusaway-sdk/models/search_for_stop_list_params.rbi +43 -0
- data/rbi/lib/onebusaway-sdk/models/search_for_stop_list_response.rbi +231 -0
- data/rbi/lib/onebusaway-sdk/models/shape_retrieve_params.rbi +18 -0
- data/rbi/lib/onebusaway-sdk/models/shape_retrieve_response.rbi +103 -0
- data/rbi/lib/onebusaway-sdk/models/stop_ids_for_agency_list_params.rbi +18 -0
- data/rbi/lib/onebusaway-sdk/models/stop_ids_for_agency_list_response.rbi +68 -0
- data/rbi/lib/onebusaway-sdk/models/stop_retrieve_params.rbi +18 -0
- data/rbi/lib/onebusaway-sdk/models/stop_retrieve_response.rbi +211 -0
- data/rbi/lib/onebusaway-sdk/models/stops_for_agency_list_params.rbi +18 -0
- data/rbi/lib/onebusaway-sdk/models/stops_for_agency_list_response.rbi +210 -0
- data/rbi/lib/onebusaway-sdk/models/stops_for_location_list_params.rbi +90 -0
- data/rbi/lib/onebusaway-sdk/models/stops_for_location_list_response.rbi +231 -0
- data/rbi/lib/onebusaway-sdk/models/stops_for_route_list_params.rbi +48 -0
- data/rbi/lib/onebusaway-sdk/models/stops_for_route_list_response.rbi +307 -0
- data/rbi/lib/onebusaway-sdk/models/trip_detail_retrieve_params.rbi +87 -0
- data/rbi/lib/onebusaway-sdk/models/trip_detail_retrieve_response.rbi +702 -0
- data/rbi/lib/onebusaway-sdk/models/trip_for_vehicle_retrieve_params.rbi +76 -0
- data/rbi/lib/onebusaway-sdk/models/trip_for_vehicle_retrieve_response.rbi +704 -0
- data/rbi/lib/onebusaway-sdk/models/trip_retrieve_params.rbi +18 -0
- data/rbi/lib/onebusaway-sdk/models/trip_retrieve_response.rbi +211 -0
- data/rbi/lib/onebusaway-sdk/models/trips_for_location_list_params.rbi +109 -0
- data/rbi/lib/onebusaway-sdk/models/trips_for_location_list_response.rbi +715 -0
- data/rbi/lib/onebusaway-sdk/models/trips_for_route_list_params.rbi +60 -0
- data/rbi/lib/onebusaway-sdk/models/trips_for_route_list_response.rbi +705 -0
- data/rbi/lib/onebusaway-sdk/models/vehicles_for_agency_list_params.rbi +35 -0
- data/rbi/lib/onebusaway-sdk/models/vehicles_for_agency_list_response.rbi +633 -0
- data/rbi/lib/onebusaway-sdk/pooled_net_requester.rbi +36 -0
- data/rbi/lib/onebusaway-sdk/request_options.rbi +84 -0
- data/rbi/lib/onebusaway-sdk/resources/agencies_with_coverage.rbi +18 -0
- data/rbi/lib/onebusaway-sdk/resources/agency.rbi +21 -0
- data/rbi/lib/onebusaway-sdk/resources/arrival_and_departure.rbi +47 -0
- data/rbi/lib/onebusaway-sdk/resources/block.rbi +21 -0
- data/rbi/lib/onebusaway-sdk/resources/config.rbi +18 -0
- data/rbi/lib/onebusaway-sdk/resources/current_time.rbi +18 -0
- data/rbi/lib/onebusaway-sdk/resources/report_problem_with_stop.rbi +34 -0
- data/rbi/lib/onebusaway-sdk/resources/report_problem_with_trip.rbi +44 -0
- data/rbi/lib/onebusaway-sdk/resources/route.rbi +21 -0
- data/rbi/lib/onebusaway-sdk/resources/route_ids_for_agency.rbi +21 -0
- data/rbi/lib/onebusaway-sdk/resources/routes_for_agency.rbi +21 -0
- data/rbi/lib/onebusaway-sdk/resources/routes_for_location.rbi +26 -0
- data/rbi/lib/onebusaway-sdk/resources/schedule_for_route.rbi +22 -0
- data/rbi/lib/onebusaway-sdk/resources/schedule_for_stop.rbi +22 -0
- data/rbi/lib/onebusaway-sdk/resources/search_for_route.rbi +22 -0
- data/rbi/lib/onebusaway-sdk/resources/search_for_stop.rbi +22 -0
- data/rbi/lib/onebusaway-sdk/resources/shape.rbi +21 -0
- data/rbi/lib/onebusaway-sdk/resources/stop.rbi +21 -0
- data/rbi/lib/onebusaway-sdk/resources/stop_ids_for_agency.rbi +21 -0
- data/rbi/lib/onebusaway-sdk/resources/stops_for_agency.rbi +21 -0
- data/rbi/lib/onebusaway-sdk/resources/stops_for_location.rbi +26 -0
- data/rbi/lib/onebusaway-sdk/resources/stops_for_route.rbi +23 -0
- data/rbi/lib/onebusaway-sdk/resources/trip.rbi +21 -0
- data/rbi/lib/onebusaway-sdk/resources/trip_details.rbi +34 -0
- data/rbi/lib/onebusaway-sdk/resources/trip_for_vehicle.rbi +32 -0
- data/rbi/lib/onebusaway-sdk/resources/trips_for_location.rbi +36 -0
- data/rbi/lib/onebusaway-sdk/resources/trips_for_route.rbi +24 -0
- data/rbi/lib/onebusaway-sdk/resources/vehicles_for_agency.rbi +22 -0
- data/rbi/lib/onebusaway-sdk/util.rbi +136 -0
- data/rbi/lib/onebusaway-sdk/version.rbi +5 -0
- data/sig/onebusaway-sdk/base_client.rbs +101 -0
- data/sig/onebusaway-sdk/base_model.rbs +244 -0
- data/sig/onebusaway-sdk/base_page.rbs +20 -0
- data/sig/onebusaway-sdk/client.rbs +80 -0
- data/sig/onebusaway-sdk/errors.rbs +98 -0
- data/sig/onebusaway-sdk/extern.rbs +4 -0
- data/sig/onebusaway-sdk/models/agencies_with_coverage_list_params.rbs +20 -0
- data/sig/onebusaway-sdk/models/agencies_with_coverage_list_response.rbs +85 -0
- data/sig/onebusaway-sdk/models/agency_retrieve_params.rbs +19 -0
- data/sig/onebusaway-sdk/models/agency_retrieve_response.rbs +115 -0
- data/sig/onebusaway-sdk/models/arrival_and_departure_list_params.rbs +38 -0
- data/sig/onebusaway-sdk/models/arrival_and_departure_list_response.rbs +447 -0
- data/sig/onebusaway-sdk/models/arrival_and_departure_retrieve_params.rbs +50 -0
- data/sig/onebusaway-sdk/models/arrival_and_departure_retrieve_response.rbs +427 -0
- data/sig/onebusaway-sdk/models/block_retrieve_params.rbs +19 -0
- data/sig/onebusaway-sdk/models/block_retrieve_response.rbs +201 -0
- data/sig/onebusaway-sdk/models/config_retrieve_params.rbs +19 -0
- data/sig/onebusaway-sdk/models/config_retrieve_response.rbs +227 -0
- data/sig/onebusaway-sdk/models/current_time_retrieve_params.rbs +19 -0
- data/sig/onebusaway-sdk/models/current_time_retrieve_response.rbs +64 -0
- data/sig/onebusaway-sdk/models/references.rbs +732 -0
- data/sig/onebusaway-sdk/models/report_problem_with_stop_retrieve_params.rbs +73 -0
- data/sig/onebusaway-sdk/models/report_problem_with_trip_retrieve_params.rbs +105 -0
- data/sig/onebusaway-sdk/models/response_wrapper.rbs +30 -0
- data/sig/onebusaway-sdk/models/route_ids_for_agency_list_params.rbs +20 -0
- data/sig/onebusaway-sdk/models/route_ids_for_agency_list_response.rbs +49 -0
- data/sig/onebusaway-sdk/models/route_retrieve_params.rbs +19 -0
- data/sig/onebusaway-sdk/models/route_retrieve_response.rbs +113 -0
- data/sig/onebusaway-sdk/models/routes_for_agency_list_params.rbs +20 -0
- data/sig/onebusaway-sdk/models/routes_for_agency_list_response.rbs +117 -0
- data/sig/onebusaway-sdk/models/routes_for_location_list_params.rbs +56 -0
- data/sig/onebusaway-sdk/models/routes_for_location_list_response.rbs +123 -0
- data/sig/onebusaway-sdk/models/schedule_for_route_retrieve_params.rbs +24 -0
- data/sig/onebusaway-sdk/models/schedule_for_route_retrieve_response.rbs +341 -0
- data/sig/onebusaway-sdk/models/schedule_for_stop_retrieve_params.rbs +24 -0
- data/sig/onebusaway-sdk/models/schedule_for_stop_retrieve_response.rbs +215 -0
- data/sig/onebusaway-sdk/models/search_for_route_list_params.rbs +30 -0
- data/sig/onebusaway-sdk/models/search_for_route_list_response.rbs +125 -0
- data/sig/onebusaway-sdk/models/search_for_stop_list_params.rbs +30 -0
- data/sig/onebusaway-sdk/models/search_for_stop_list_response.rbs +123 -0
- data/sig/onebusaway-sdk/models/shape_retrieve_params.rbs +19 -0
- data/sig/onebusaway-sdk/models/shape_retrieve_response.rbs +64 -0
- data/sig/onebusaway-sdk/models/stop_ids_for_agency_list_params.rbs +20 -0
- data/sig/onebusaway-sdk/models/stop_ids_for_agency_list_response.rbs +49 -0
- data/sig/onebusaway-sdk/models/stop_retrieve_params.rbs +19 -0
- data/sig/onebusaway-sdk/models/stop_retrieve_response.rbs +111 -0
- data/sig/onebusaway-sdk/models/stops_for_agency_list_params.rbs +19 -0
- data/sig/onebusaway-sdk/models/stops_for_agency_list_response.rbs +105 -0
- data/sig/onebusaway-sdk/models/stops_for_location_list_params.rbs +56 -0
- data/sig/onebusaway-sdk/models/stops_for_location_list_response.rbs +123 -0
- data/sig/onebusaway-sdk/models/stops_for_route_list_params.rbs +33 -0
- data/sig/onebusaway-sdk/models/stops_for_route_list_response.rbs +206 -0
- data/sig/onebusaway-sdk/models/trip_detail_retrieve_params.rbs +54 -0
- data/sig/onebusaway-sdk/models/trip_detail_retrieve_response.rbs +375 -0
- data/sig/onebusaway-sdk/models/trip_for_vehicle_retrieve_params.rbs +48 -0
- data/sig/onebusaway-sdk/models/trip_for_vehicle_retrieve_response.rbs +377 -0
- data/sig/onebusaway-sdk/models/trip_retrieve_params.rbs +19 -0
- data/sig/onebusaway-sdk/models/trip_retrieve_response.rbs +119 -0
- data/sig/onebusaway-sdk/models/trips_for_location_list_params.rbs +58 -0
- data/sig/onebusaway-sdk/models/trips_for_location_list_response.rbs +379 -0
- data/sig/onebusaway-sdk/models/trips_for_route_list_params.rbs +38 -0
- data/sig/onebusaway-sdk/models/trips_for_route_list_response.rbs +371 -0
- data/sig/onebusaway-sdk/models/vehicles_for_agency_list_params.rbs +24 -0
- data/sig/onebusaway-sdk/models/vehicles_for_agency_list_response.rbs +332 -0
- data/sig/onebusaway-sdk/pooled_net_requester.rbs +28 -0
- data/sig/onebusaway-sdk/request_options.rbs +42 -0
- data/sig/onebusaway-sdk/resources/agencies_with_coverage.rbs +16 -0
- data/sig/onebusaway-sdk/resources/agency.rbs +18 -0
- data/sig/onebusaway-sdk/resources/arrival_and_departure.rbs +37 -0
- data/sig/onebusaway-sdk/resources/block.rbs +18 -0
- data/sig/onebusaway-sdk/resources/config.rbs +16 -0
- data/sig/onebusaway-sdk/resources/current_time.rbs +16 -0
- data/sig/onebusaway-sdk/resources/report_problem_with_stop.rbs +23 -0
- data/sig/onebusaway-sdk/resources/report_problem_with_trip.rbs +28 -0
- data/sig/onebusaway-sdk/resources/route.rbs +18 -0
- data/sig/onebusaway-sdk/resources/route_ids_for_agency.rbs +18 -0
- data/sig/onebusaway-sdk/resources/routes_for_agency.rbs +18 -0
- data/sig/onebusaway-sdk/resources/routes_for_location.rbs +22 -0
- data/sig/onebusaway-sdk/resources/schedule_for_route.rbs +19 -0
- data/sig/onebusaway-sdk/resources/schedule_for_stop.rbs +19 -0
- data/sig/onebusaway-sdk/resources/search_for_route.rbs +18 -0
- data/sig/onebusaway-sdk/resources/search_for_stop.rbs +18 -0
- data/sig/onebusaway-sdk/resources/shape.rbs +18 -0
- data/sig/onebusaway-sdk/resources/stop.rbs +18 -0
- data/sig/onebusaway-sdk/resources/stop_ids_for_agency.rbs +18 -0
- data/sig/onebusaway-sdk/resources/stops_for_agency.rbs +18 -0
- data/sig/onebusaway-sdk/resources/stops_for_location.rbs +22 -0
- data/sig/onebusaway-sdk/resources/stops_for_route.rbs +20 -0
- data/sig/onebusaway-sdk/resources/trip.rbs +18 -0
- data/sig/onebusaway-sdk/resources/trip_details.rbs +23 -0
- data/sig/onebusaway-sdk/resources/trip_for_vehicle.rbs +22 -0
- data/sig/onebusaway-sdk/resources/trips_for_location.rbs +23 -0
- data/sig/onebusaway-sdk/resources/trips_for_route.rbs +21 -0
- data/sig/onebusaway-sdk/resources/vehicles_for_agency.rbs +19 -0
- data/sig/onebusaway-sdk/util.rbs +90 -0
- data/sig/onebusaway-sdk/version.rbs +3 -0
- metadata +350 -0
@@ -0,0 +1,80 @@
|
|
1
|
+
module OnebusawaySDK
|
2
|
+
class Client < OnebusawaySDK::BaseClient
|
3
|
+
DEFAULT_MAX_RETRIES: 2
|
4
|
+
|
5
|
+
DEFAULT_TIMEOUT_IN_SECONDS: Float
|
6
|
+
|
7
|
+
DEFAULT_INITIAL_RETRY_DELAY: Float
|
8
|
+
|
9
|
+
DEFAULT_MAX_RETRY_DELAY: Float
|
10
|
+
|
11
|
+
attr_reader api_key: String
|
12
|
+
|
13
|
+
attr_reader agencies_with_coverage: OnebusawaySDK::Resources::AgenciesWithCoverage
|
14
|
+
|
15
|
+
attr_reader agency: OnebusawaySDK::Resources::Agency
|
16
|
+
|
17
|
+
attr_reader vehicles_for_agency: OnebusawaySDK::Resources::VehiclesForAgency
|
18
|
+
|
19
|
+
attr_reader config: OnebusawaySDK::Resources::Config
|
20
|
+
|
21
|
+
attr_reader current_time: OnebusawaySDK::Resources::CurrentTime
|
22
|
+
|
23
|
+
attr_reader stops_for_location: OnebusawaySDK::Resources::StopsForLocation
|
24
|
+
|
25
|
+
attr_reader stops_for_route: OnebusawaySDK::Resources::StopsForRoute
|
26
|
+
|
27
|
+
attr_reader stops_for_agency: OnebusawaySDK::Resources::StopsForAgency
|
28
|
+
|
29
|
+
attr_reader stop: OnebusawaySDK::Resources::Stop
|
30
|
+
|
31
|
+
attr_reader stop_ids_for_agency: OnebusawaySDK::Resources::StopIDsForAgency
|
32
|
+
|
33
|
+
attr_reader schedule_for_stop: OnebusawaySDK::Resources::ScheduleForStop
|
34
|
+
|
35
|
+
attr_reader route: OnebusawaySDK::Resources::Route
|
36
|
+
|
37
|
+
attr_reader route_ids_for_agency: OnebusawaySDK::Resources::RouteIDsForAgency
|
38
|
+
|
39
|
+
attr_reader routes_for_location: OnebusawaySDK::Resources::RoutesForLocation
|
40
|
+
|
41
|
+
attr_reader routes_for_agency: OnebusawaySDK::Resources::RoutesForAgency
|
42
|
+
|
43
|
+
attr_reader schedule_for_route: OnebusawaySDK::Resources::ScheduleForRoute
|
44
|
+
|
45
|
+
attr_reader arrival_and_departure: OnebusawaySDK::Resources::ArrivalAndDeparture
|
46
|
+
|
47
|
+
attr_reader trip: OnebusawaySDK::Resources::Trip
|
48
|
+
|
49
|
+
attr_reader trips_for_location: OnebusawaySDK::Resources::TripsForLocation
|
50
|
+
|
51
|
+
attr_reader trip_details: OnebusawaySDK::Resources::TripDetails
|
52
|
+
|
53
|
+
attr_reader trip_for_vehicle: OnebusawaySDK::Resources::TripForVehicle
|
54
|
+
|
55
|
+
attr_reader trips_for_route: OnebusawaySDK::Resources::TripsForRoute
|
56
|
+
|
57
|
+
attr_reader report_problem_with_stop: OnebusawaySDK::Resources::ReportProblemWithStop
|
58
|
+
|
59
|
+
attr_reader report_problem_with_trip: OnebusawaySDK::Resources::ReportProblemWithTrip
|
60
|
+
|
61
|
+
attr_reader search_for_stop: OnebusawaySDK::Resources::SearchForStop
|
62
|
+
|
63
|
+
attr_reader search_for_route: OnebusawaySDK::Resources::SearchForRoute
|
64
|
+
|
65
|
+
attr_reader block: OnebusawaySDK::Resources::Block
|
66
|
+
|
67
|
+
attr_reader shape: OnebusawaySDK::Resources::Shape
|
68
|
+
|
69
|
+
private def auth_query: -> ::Hash[String, String]
|
70
|
+
|
71
|
+
def initialize: (
|
72
|
+
base_url: String?,
|
73
|
+
api_key: String?,
|
74
|
+
max_retries: Integer,
|
75
|
+
timeout: Float,
|
76
|
+
initial_retry_delay: Float,
|
77
|
+
max_retry_delay: Float
|
78
|
+
) -> void
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,98 @@
|
|
1
|
+
module OnebusawaySDK
|
2
|
+
class Error < StandardError
|
3
|
+
attr_reader cause: StandardError?
|
4
|
+
end
|
5
|
+
|
6
|
+
class ConversionError < OnebusawaySDK::Error
|
7
|
+
end
|
8
|
+
|
9
|
+
class APIError < OnebusawaySDK::Error
|
10
|
+
attr_reader url: URI::Generic
|
11
|
+
|
12
|
+
attr_reader status: Integer?
|
13
|
+
|
14
|
+
attr_reader body: top?
|
15
|
+
|
16
|
+
def initialize: (
|
17
|
+
url: URI::Generic,
|
18
|
+
status: Integer?,
|
19
|
+
body: Object?,
|
20
|
+
request: nil,
|
21
|
+
response: nil,
|
22
|
+
message: String?
|
23
|
+
) -> void
|
24
|
+
end
|
25
|
+
|
26
|
+
class APIConnectionError < OnebusawaySDK::APIError
|
27
|
+
def initialize: (
|
28
|
+
url: URI::Generic,
|
29
|
+
status: nil,
|
30
|
+
body: nil,
|
31
|
+
request: nil,
|
32
|
+
response: nil,
|
33
|
+
message: String?
|
34
|
+
) -> void
|
35
|
+
end
|
36
|
+
|
37
|
+
class APITimeoutError < OnebusawaySDK::APIConnectionError
|
38
|
+
def initialize: (
|
39
|
+
url: URI::Generic,
|
40
|
+
status: nil,
|
41
|
+
body: nil,
|
42
|
+
request: nil,
|
43
|
+
response: nil,
|
44
|
+
message: String?
|
45
|
+
) -> void
|
46
|
+
end
|
47
|
+
|
48
|
+
class APIStatusError < OnebusawaySDK::APIError
|
49
|
+
def self.for: (
|
50
|
+
url: URI::Generic,
|
51
|
+
status: Integer,
|
52
|
+
body: Object?,
|
53
|
+
request: nil,
|
54
|
+
response: nil
|
55
|
+
) -> instance
|
56
|
+
|
57
|
+
def initialize: (
|
58
|
+
url: URI::Generic,
|
59
|
+
status: Integer,
|
60
|
+
body: Object?,
|
61
|
+
request: nil,
|
62
|
+
response: nil,
|
63
|
+
message: String?
|
64
|
+
) -> void
|
65
|
+
end
|
66
|
+
|
67
|
+
class BadRequestError < OnebusawaySDK::APIStatusError
|
68
|
+
HTTP_STATUS: 400
|
69
|
+
end
|
70
|
+
|
71
|
+
class AuthenticationError < OnebusawaySDK::APIStatusError
|
72
|
+
HTTP_STATUS: 401
|
73
|
+
end
|
74
|
+
|
75
|
+
class PermissionDeniedError < OnebusawaySDK::APIStatusError
|
76
|
+
HTTP_STATUS: 403
|
77
|
+
end
|
78
|
+
|
79
|
+
class NotFoundError < OnebusawaySDK::APIStatusError
|
80
|
+
HTTP_STATUS: 404
|
81
|
+
end
|
82
|
+
|
83
|
+
class ConflictError < OnebusawaySDK::APIStatusError
|
84
|
+
HTTP_STATUS: 409
|
85
|
+
end
|
86
|
+
|
87
|
+
class UnprocessableEntityError < OnebusawaySDK::APIStatusError
|
88
|
+
HTTP_STATUS: 422
|
89
|
+
end
|
90
|
+
|
91
|
+
class RateLimitError < OnebusawaySDK::APIStatusError
|
92
|
+
HTTP_STATUS: 429
|
93
|
+
end
|
94
|
+
|
95
|
+
class InternalServerError < OnebusawaySDK::APIStatusError
|
96
|
+
HTTP_STATUS: Range[Integer]
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module OnebusawaySDK
|
2
|
+
module Models
|
3
|
+
type agencies_with_coverage_list_params =
|
4
|
+
{ } & OnebusawaySDK::request_parameters
|
5
|
+
|
6
|
+
class AgenciesWithCoverageListParams < OnebusawaySDK::BaseModel
|
7
|
+
extend OnebusawaySDK::RequestParameters::Converter
|
8
|
+
include OnebusawaySDK::RequestParameters
|
9
|
+
|
10
|
+
def initialize:
|
11
|
+
(request_options: OnebusawaySDK::request_opts) -> void
|
12
|
+
| (
|
13
|
+
?OnebusawaySDK::Models::agencies_with_coverage_list_params
|
14
|
+
| OnebusawaySDK::BaseModel data
|
15
|
+
) -> void
|
16
|
+
|
17
|
+
def to_hash: -> OnebusawaySDK::Models::agencies_with_coverage_list_params
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
module OnebusawaySDK
|
2
|
+
module Models
|
3
|
+
type agencies_with_coverage_list_response =
|
4
|
+
{ data: OnebusawaySDK::Models::AgenciesWithCoverageListResponse::Data }
|
5
|
+
|
6
|
+
class AgenciesWithCoverageListResponse < OnebusawaySDK::Models::ResponseWrapper
|
7
|
+
attr_accessor data: OnebusawaySDK::Models::AgenciesWithCoverageListResponse::Data
|
8
|
+
|
9
|
+
def initialize:
|
10
|
+
(
|
11
|
+
data: OnebusawaySDK::Models::AgenciesWithCoverageListResponse::Data
|
12
|
+
) -> void
|
13
|
+
| (
|
14
|
+
?OnebusawaySDK::Models::agencies_with_coverage_list_response
|
15
|
+
| OnebusawaySDK::BaseModel data
|
16
|
+
) -> void
|
17
|
+
|
18
|
+
def to_hash: -> OnebusawaySDK::Models::agencies_with_coverage_list_response
|
19
|
+
|
20
|
+
type data =
|
21
|
+
{
|
22
|
+
limit_exceeded: bool,
|
23
|
+
list: ::Array[OnebusawaySDK::Models::AgenciesWithCoverageListResponse::Data::List],
|
24
|
+
references: OnebusawaySDK::Models::References
|
25
|
+
}
|
26
|
+
|
27
|
+
class Data < OnebusawaySDK::BaseModel
|
28
|
+
attr_accessor limit_exceeded: bool
|
29
|
+
|
30
|
+
attr_accessor list: ::Array[OnebusawaySDK::Models::AgenciesWithCoverageListResponse::Data::List]
|
31
|
+
|
32
|
+
attr_accessor references: OnebusawaySDK::Models::References
|
33
|
+
|
34
|
+
def initialize:
|
35
|
+
(
|
36
|
+
limit_exceeded: bool,
|
37
|
+
list: ::Array[OnebusawaySDK::Models::AgenciesWithCoverageListResponse::Data::List],
|
38
|
+
references: OnebusawaySDK::Models::References
|
39
|
+
) -> void
|
40
|
+
| (
|
41
|
+
?OnebusawaySDK::Models::AgenciesWithCoverageListResponse::data
|
42
|
+
| OnebusawaySDK::BaseModel data
|
43
|
+
) -> void
|
44
|
+
|
45
|
+
def to_hash: -> OnebusawaySDK::Models::AgenciesWithCoverageListResponse::data
|
46
|
+
|
47
|
+
type list =
|
48
|
+
{
|
49
|
+
agency_id: String,
|
50
|
+
lat: Float,
|
51
|
+
lat_span: Float,
|
52
|
+
lon: Float,
|
53
|
+
lon_span: Float
|
54
|
+
}
|
55
|
+
|
56
|
+
class List < OnebusawaySDK::BaseModel
|
57
|
+
attr_accessor agency_id: String
|
58
|
+
|
59
|
+
attr_accessor lat: Float
|
60
|
+
|
61
|
+
attr_accessor lat_span: Float
|
62
|
+
|
63
|
+
attr_accessor lon: Float
|
64
|
+
|
65
|
+
attr_accessor lon_span: Float
|
66
|
+
|
67
|
+
def initialize:
|
68
|
+
(
|
69
|
+
agency_id: String,
|
70
|
+
lat: Float,
|
71
|
+
lat_span: Float,
|
72
|
+
lon: Float,
|
73
|
+
lon_span: Float
|
74
|
+
) -> void
|
75
|
+
| (
|
76
|
+
?OnebusawaySDK::Models::AgenciesWithCoverageListResponse::Data::list
|
77
|
+
| OnebusawaySDK::BaseModel data
|
78
|
+
) -> void
|
79
|
+
|
80
|
+
def to_hash: -> OnebusawaySDK::Models::AgenciesWithCoverageListResponse::Data::list
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module OnebusawaySDK
|
2
|
+
module Models
|
3
|
+
type agency_retrieve_params = { } & OnebusawaySDK::request_parameters
|
4
|
+
|
5
|
+
class AgencyRetrieveParams < OnebusawaySDK::BaseModel
|
6
|
+
extend OnebusawaySDK::RequestParameters::Converter
|
7
|
+
include OnebusawaySDK::RequestParameters
|
8
|
+
|
9
|
+
def initialize:
|
10
|
+
(request_options: OnebusawaySDK::request_opts) -> void
|
11
|
+
| (
|
12
|
+
?OnebusawaySDK::Models::agency_retrieve_params
|
13
|
+
| OnebusawaySDK::BaseModel data
|
14
|
+
) -> void
|
15
|
+
|
16
|
+
def to_hash: -> OnebusawaySDK::Models::agency_retrieve_params
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,115 @@
|
|
1
|
+
module OnebusawaySDK
|
2
|
+
module Models
|
3
|
+
type agency_retrieve_response =
|
4
|
+
{ data: OnebusawaySDK::Models::AgencyRetrieveResponse::Data }
|
5
|
+
|
6
|
+
class AgencyRetrieveResponse < OnebusawaySDK::Models::ResponseWrapper
|
7
|
+
attr_accessor data: OnebusawaySDK::Models::AgencyRetrieveResponse::Data
|
8
|
+
|
9
|
+
def initialize:
|
10
|
+
(data: OnebusawaySDK::Models::AgencyRetrieveResponse::Data) -> void
|
11
|
+
| (
|
12
|
+
?OnebusawaySDK::Models::agency_retrieve_response
|
13
|
+
| OnebusawaySDK::BaseModel data
|
14
|
+
) -> void
|
15
|
+
|
16
|
+
def to_hash: -> OnebusawaySDK::Models::agency_retrieve_response
|
17
|
+
|
18
|
+
type data =
|
19
|
+
{
|
20
|
+
entry: OnebusawaySDK::Models::AgencyRetrieveResponse::Data::Entry,
|
21
|
+
limit_exceeded: bool,
|
22
|
+
references: OnebusawaySDK::Models::References
|
23
|
+
}
|
24
|
+
|
25
|
+
class Data < OnebusawaySDK::BaseModel
|
26
|
+
attr_accessor entry: OnebusawaySDK::Models::AgencyRetrieveResponse::Data::Entry
|
27
|
+
|
28
|
+
attr_accessor limit_exceeded: bool
|
29
|
+
|
30
|
+
attr_accessor references: OnebusawaySDK::Models::References
|
31
|
+
|
32
|
+
def initialize:
|
33
|
+
(
|
34
|
+
entry: OnebusawaySDK::Models::AgencyRetrieveResponse::Data::Entry,
|
35
|
+
limit_exceeded: bool,
|
36
|
+
references: OnebusawaySDK::Models::References
|
37
|
+
) -> void
|
38
|
+
| (
|
39
|
+
?OnebusawaySDK::Models::AgencyRetrieveResponse::data
|
40
|
+
| OnebusawaySDK::BaseModel data
|
41
|
+
) -> void
|
42
|
+
|
43
|
+
def to_hash: -> OnebusawaySDK::Models::AgencyRetrieveResponse::data
|
44
|
+
|
45
|
+
type entry =
|
46
|
+
{
|
47
|
+
id: String,
|
48
|
+
name: String,
|
49
|
+
timezone: String,
|
50
|
+
url: String,
|
51
|
+
disclaimer: String,
|
52
|
+
email: String,
|
53
|
+
fare_url: String,
|
54
|
+
lang: String,
|
55
|
+
phone: String,
|
56
|
+
private_service: bool
|
57
|
+
}
|
58
|
+
|
59
|
+
class Entry < OnebusawaySDK::BaseModel
|
60
|
+
attr_accessor id: String
|
61
|
+
|
62
|
+
attr_accessor name: String
|
63
|
+
|
64
|
+
attr_accessor timezone: String
|
65
|
+
|
66
|
+
attr_accessor url: String
|
67
|
+
|
68
|
+
attr_reader disclaimer: String?
|
69
|
+
|
70
|
+
def disclaimer=: (String) -> String
|
71
|
+
|
72
|
+
attr_reader email: String?
|
73
|
+
|
74
|
+
def email=: (String) -> String
|
75
|
+
|
76
|
+
attr_reader fare_url: String?
|
77
|
+
|
78
|
+
def fare_url=: (String) -> String
|
79
|
+
|
80
|
+
attr_reader lang: String?
|
81
|
+
|
82
|
+
def lang=: (String) -> String
|
83
|
+
|
84
|
+
attr_reader phone: String?
|
85
|
+
|
86
|
+
def phone=: (String) -> String
|
87
|
+
|
88
|
+
attr_reader private_service: bool?
|
89
|
+
|
90
|
+
def private_service=: (bool) -> bool
|
91
|
+
|
92
|
+
def initialize:
|
93
|
+
(
|
94
|
+
id: String,
|
95
|
+
name: String,
|
96
|
+
timezone: String,
|
97
|
+
url: String,
|
98
|
+
disclaimer: String,
|
99
|
+
email: String,
|
100
|
+
fare_url: String,
|
101
|
+
lang: String,
|
102
|
+
phone: String,
|
103
|
+
private_service: bool
|
104
|
+
) -> void
|
105
|
+
| (
|
106
|
+
?OnebusawaySDK::Models::AgencyRetrieveResponse::Data::entry
|
107
|
+
| OnebusawaySDK::BaseModel data
|
108
|
+
) -> void
|
109
|
+
|
110
|
+
def to_hash: -> OnebusawaySDK::Models::AgencyRetrieveResponse::Data::entry
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
module OnebusawaySDK
|
2
|
+
module Models
|
3
|
+
type arrival_and_departure_list_params =
|
4
|
+
{ minutes_after: Integer, minutes_before: Integer, time: Time }
|
5
|
+
& OnebusawaySDK::request_parameters
|
6
|
+
|
7
|
+
class ArrivalAndDepartureListParams < OnebusawaySDK::BaseModel
|
8
|
+
extend OnebusawaySDK::RequestParameters::Converter
|
9
|
+
include OnebusawaySDK::RequestParameters
|
10
|
+
|
11
|
+
attr_reader minutes_after: Integer?
|
12
|
+
|
13
|
+
def minutes_after=: (Integer) -> Integer
|
14
|
+
|
15
|
+
attr_reader minutes_before: Integer?
|
16
|
+
|
17
|
+
def minutes_before=: (Integer) -> Integer
|
18
|
+
|
19
|
+
attr_reader time: Time?
|
20
|
+
|
21
|
+
def time=: (Time) -> Time
|
22
|
+
|
23
|
+
def initialize:
|
24
|
+
(
|
25
|
+
minutes_after: Integer,
|
26
|
+
minutes_before: Integer,
|
27
|
+
time: Time,
|
28
|
+
request_options: OnebusawaySDK::request_opts
|
29
|
+
) -> void
|
30
|
+
| (
|
31
|
+
?OnebusawaySDK::Models::arrival_and_departure_list_params
|
32
|
+
| OnebusawaySDK::BaseModel data
|
33
|
+
) -> void
|
34
|
+
|
35
|
+
def to_hash: -> OnebusawaySDK::Models::arrival_and_departure_list_params
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|