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,70 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module OnebusawaySDK
|
4
|
+
module Models
|
5
|
+
class ShapeRetrieveResponse < OnebusawaySDK::Models::ResponseWrapper
|
6
|
+
# @!attribute data
|
7
|
+
#
|
8
|
+
# @return [OnebusawaySDK::Models::ShapeRetrieveResponse::Data]
|
9
|
+
required :data, -> { OnebusawaySDK::Models::ShapeRetrieveResponse::Data }
|
10
|
+
|
11
|
+
# @!parse
|
12
|
+
# # @param data [OnebusawaySDK::Models::ShapeRetrieveResponse::Data]
|
13
|
+
# #
|
14
|
+
# def initialize(data:, **) = super
|
15
|
+
|
16
|
+
# def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
|
17
|
+
|
18
|
+
class Data < OnebusawaySDK::BaseModel
|
19
|
+
# @!attribute entry
|
20
|
+
#
|
21
|
+
# @return [OnebusawaySDK::Models::ShapeRetrieveResponse::Data::Entry]
|
22
|
+
required :entry, -> { OnebusawaySDK::Models::ShapeRetrieveResponse::Data::Entry }
|
23
|
+
|
24
|
+
# @!attribute references
|
25
|
+
#
|
26
|
+
# @return [OnebusawaySDK::Models::References]
|
27
|
+
required :references, -> { OnebusawaySDK::Models::References }
|
28
|
+
|
29
|
+
# @!parse
|
30
|
+
# # @param entry [OnebusawaySDK::Models::ShapeRetrieveResponse::Data::Entry]
|
31
|
+
# # @param references [OnebusawaySDK::Models::References]
|
32
|
+
# #
|
33
|
+
# def initialize(entry:, references:, **) = super
|
34
|
+
|
35
|
+
# def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
|
36
|
+
|
37
|
+
class Entry < OnebusawaySDK::BaseModel
|
38
|
+
# @!attribute length
|
39
|
+
#
|
40
|
+
# @return [Integer]
|
41
|
+
required :length, Integer
|
42
|
+
|
43
|
+
# @!attribute points
|
44
|
+
# Encoded polyline format representing the shape of the path
|
45
|
+
#
|
46
|
+
# @return [String]
|
47
|
+
required :points, String
|
48
|
+
|
49
|
+
# @!attribute [r] levels
|
50
|
+
#
|
51
|
+
# @return [String, nil]
|
52
|
+
optional :levels, String
|
53
|
+
|
54
|
+
# @!parse
|
55
|
+
# # @return [String]
|
56
|
+
# attr_writer :levels
|
57
|
+
|
58
|
+
# @!parse
|
59
|
+
# # @param length [Integer]
|
60
|
+
# # @param points [String]
|
61
|
+
# # @param levels [String]
|
62
|
+
# #
|
63
|
+
# def initialize(length:, points:, levels: nil, **) = super
|
64
|
+
|
65
|
+
# def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module OnebusawaySDK
|
4
|
+
module Models
|
5
|
+
class StopIDsForAgencyListParams < OnebusawaySDK::BaseModel
|
6
|
+
# @!parse
|
7
|
+
# extend OnebusawaySDK::RequestParameters::Converter
|
8
|
+
include OnebusawaySDK::RequestParameters
|
9
|
+
|
10
|
+
# @!parse
|
11
|
+
# # @param request_options [OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}]
|
12
|
+
# #
|
13
|
+
# def initialize(request_options: {}, **) = super
|
14
|
+
|
15
|
+
# def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module OnebusawaySDK
|
4
|
+
module Models
|
5
|
+
class StopIDsForAgencyListResponse < OnebusawaySDK::Models::ResponseWrapper
|
6
|
+
# @!attribute data
|
7
|
+
#
|
8
|
+
# @return [OnebusawaySDK::Models::StopIDsForAgencyListResponse::Data]
|
9
|
+
required :data, -> { OnebusawaySDK::Models::StopIDsForAgencyListResponse::Data }
|
10
|
+
|
11
|
+
# @!parse
|
12
|
+
# # @param data [OnebusawaySDK::Models::StopIDsForAgencyListResponse::Data]
|
13
|
+
# #
|
14
|
+
# def initialize(data:, **) = super
|
15
|
+
|
16
|
+
# def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
|
17
|
+
|
18
|
+
class Data < OnebusawaySDK::BaseModel
|
19
|
+
# @!attribute limit_exceeded
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
required :limit_exceeded, OnebusawaySDK::BooleanModel, api_name: :limitExceeded
|
23
|
+
|
24
|
+
# @!attribute list
|
25
|
+
#
|
26
|
+
# @return [Array<String>]
|
27
|
+
required :list, OnebusawaySDK::ArrayOf[String]
|
28
|
+
|
29
|
+
# @!attribute references
|
30
|
+
#
|
31
|
+
# @return [OnebusawaySDK::Models::References]
|
32
|
+
required :references, -> { OnebusawaySDK::Models::References }
|
33
|
+
|
34
|
+
# @!parse
|
35
|
+
# # @param limit_exceeded [Boolean]
|
36
|
+
# # @param list [Array<String>]
|
37
|
+
# # @param references [OnebusawaySDK::Models::References]
|
38
|
+
# #
|
39
|
+
# def initialize(limit_exceeded:, list:, references:, **) = super
|
40
|
+
|
41
|
+
# def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module OnebusawaySDK
|
4
|
+
module Models
|
5
|
+
class StopRetrieveParams < OnebusawaySDK::BaseModel
|
6
|
+
# @!parse
|
7
|
+
# extend OnebusawaySDK::RequestParameters::Converter
|
8
|
+
include OnebusawaySDK::RequestParameters
|
9
|
+
|
10
|
+
# @!parse
|
11
|
+
# # @param request_options [OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}]
|
12
|
+
# #
|
13
|
+
# def initialize(request_options: {}, **) = super
|
14
|
+
|
15
|
+
# def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,144 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module OnebusawaySDK
|
4
|
+
module Models
|
5
|
+
class StopRetrieveResponse < OnebusawaySDK::Models::ResponseWrapper
|
6
|
+
# @!attribute data
|
7
|
+
#
|
8
|
+
# @return [OnebusawaySDK::Models::StopRetrieveResponse::Data]
|
9
|
+
required :data, -> { OnebusawaySDK::Models::StopRetrieveResponse::Data }
|
10
|
+
|
11
|
+
# @!parse
|
12
|
+
# # @param data [OnebusawaySDK::Models::StopRetrieveResponse::Data]
|
13
|
+
# #
|
14
|
+
# def initialize(data:, **) = super
|
15
|
+
|
16
|
+
# def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
|
17
|
+
|
18
|
+
class Data < OnebusawaySDK::BaseModel
|
19
|
+
# @!attribute entry
|
20
|
+
#
|
21
|
+
# @return [OnebusawaySDK::Models::StopRetrieveResponse::Data::Entry]
|
22
|
+
required :entry, -> { OnebusawaySDK::Models::StopRetrieveResponse::Data::Entry }
|
23
|
+
|
24
|
+
# @!attribute references
|
25
|
+
#
|
26
|
+
# @return [OnebusawaySDK::Models::References]
|
27
|
+
required :references, -> { OnebusawaySDK::Models::References }
|
28
|
+
|
29
|
+
# @!parse
|
30
|
+
# # @param entry [OnebusawaySDK::Models::StopRetrieveResponse::Data::Entry]
|
31
|
+
# # @param references [OnebusawaySDK::Models::References]
|
32
|
+
# #
|
33
|
+
# def initialize(entry:, references:, **) = super
|
34
|
+
|
35
|
+
# def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
|
36
|
+
|
37
|
+
class Entry < OnebusawaySDK::BaseModel
|
38
|
+
# @!attribute id
|
39
|
+
#
|
40
|
+
# @return [String]
|
41
|
+
required :id, String
|
42
|
+
|
43
|
+
# @!attribute lat
|
44
|
+
#
|
45
|
+
# @return [Float]
|
46
|
+
required :lat, Float
|
47
|
+
|
48
|
+
# @!attribute lon
|
49
|
+
#
|
50
|
+
# @return [Float]
|
51
|
+
required :lon, Float
|
52
|
+
|
53
|
+
# @!attribute name
|
54
|
+
#
|
55
|
+
# @return [String]
|
56
|
+
required :name, String
|
57
|
+
|
58
|
+
# @!attribute parent
|
59
|
+
#
|
60
|
+
# @return [String]
|
61
|
+
required :parent, String
|
62
|
+
|
63
|
+
# @!attribute route_ids
|
64
|
+
#
|
65
|
+
# @return [Array<String>]
|
66
|
+
required :route_ids, OnebusawaySDK::ArrayOf[String], api_name: :routeIds
|
67
|
+
|
68
|
+
# @!attribute static_route_ids
|
69
|
+
#
|
70
|
+
# @return [Array<String>]
|
71
|
+
required :static_route_ids, OnebusawaySDK::ArrayOf[String], api_name: :staticRouteIds
|
72
|
+
|
73
|
+
# @!attribute [r] code
|
74
|
+
#
|
75
|
+
# @return [String, nil]
|
76
|
+
optional :code, String
|
77
|
+
|
78
|
+
# @!parse
|
79
|
+
# # @return [String]
|
80
|
+
# attr_writer :code
|
81
|
+
|
82
|
+
# @!attribute [r] direction
|
83
|
+
#
|
84
|
+
# @return [String, nil]
|
85
|
+
optional :direction, String
|
86
|
+
|
87
|
+
# @!parse
|
88
|
+
# # @return [String]
|
89
|
+
# attr_writer :direction
|
90
|
+
|
91
|
+
# @!attribute [r] location_type
|
92
|
+
#
|
93
|
+
# @return [Integer, nil]
|
94
|
+
optional :location_type, Integer, api_name: :locationType
|
95
|
+
|
96
|
+
# @!parse
|
97
|
+
# # @return [Integer]
|
98
|
+
# attr_writer :location_type
|
99
|
+
|
100
|
+
# @!attribute [r] wheelchair_boarding
|
101
|
+
#
|
102
|
+
# @return [String, nil]
|
103
|
+
optional :wheelchair_boarding, String, api_name: :wheelchairBoarding
|
104
|
+
|
105
|
+
# @!parse
|
106
|
+
# # @return [String]
|
107
|
+
# attr_writer :wheelchair_boarding
|
108
|
+
|
109
|
+
# @!parse
|
110
|
+
# # @param id [String]
|
111
|
+
# # @param lat [Float]
|
112
|
+
# # @param lon [Float]
|
113
|
+
# # @param name [String]
|
114
|
+
# # @param parent [String]
|
115
|
+
# # @param route_ids [Array<String>]
|
116
|
+
# # @param static_route_ids [Array<String>]
|
117
|
+
# # @param code [String]
|
118
|
+
# # @param direction [String]
|
119
|
+
# # @param location_type [Integer]
|
120
|
+
# # @param wheelchair_boarding [String]
|
121
|
+
# #
|
122
|
+
# def initialize(
|
123
|
+
# id:,
|
124
|
+
# lat:,
|
125
|
+
# lon:,
|
126
|
+
# name:,
|
127
|
+
# parent:,
|
128
|
+
# route_ids:,
|
129
|
+
# static_route_ids:,
|
130
|
+
# code: nil,
|
131
|
+
# direction: nil,
|
132
|
+
# location_type: nil,
|
133
|
+
# wheelchair_boarding: nil,
|
134
|
+
# **
|
135
|
+
# )
|
136
|
+
# super
|
137
|
+
# end
|
138
|
+
|
139
|
+
# def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module OnebusawaySDK
|
4
|
+
module Models
|
5
|
+
class StopsForAgencyListParams < OnebusawaySDK::BaseModel
|
6
|
+
# @!parse
|
7
|
+
# extend OnebusawaySDK::RequestParameters::Converter
|
8
|
+
include OnebusawaySDK::RequestParameters
|
9
|
+
|
10
|
+
# @!parse
|
11
|
+
# # @param request_options [OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}]
|
12
|
+
# #
|
13
|
+
# def initialize(request_options: {}, **) = super
|
14
|
+
|
15
|
+
# def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,146 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module OnebusawaySDK
|
4
|
+
module Models
|
5
|
+
class StopsForAgencyListResponse < OnebusawaySDK::Models::ResponseWrapper
|
6
|
+
# @!attribute limit_exceeded
|
7
|
+
#
|
8
|
+
# @return [Boolean]
|
9
|
+
required :limit_exceeded, OnebusawaySDK::BooleanModel, api_name: :limitExceeded
|
10
|
+
|
11
|
+
# @!attribute list
|
12
|
+
#
|
13
|
+
# @return [Array<OnebusawaySDK::Models::StopsForAgencyListResponse::List>]
|
14
|
+
required :list, -> { OnebusawaySDK::ArrayOf[OnebusawaySDK::Models::StopsForAgencyListResponse::List] }
|
15
|
+
|
16
|
+
# @!attribute references
|
17
|
+
#
|
18
|
+
# @return [OnebusawaySDK::Models::References]
|
19
|
+
required :references, -> { OnebusawaySDK::Models::References }
|
20
|
+
|
21
|
+
# @!attribute [r] out_of_range
|
22
|
+
#
|
23
|
+
# @return [Boolean, nil]
|
24
|
+
optional :out_of_range, OnebusawaySDK::BooleanModel, api_name: :outOfRange
|
25
|
+
|
26
|
+
# @!parse
|
27
|
+
# # @return [Boolean]
|
28
|
+
# attr_writer :out_of_range
|
29
|
+
|
30
|
+
# @!parse
|
31
|
+
# # @param limit_exceeded [Boolean]
|
32
|
+
# # @param list [Array<OnebusawaySDK::Models::StopsForAgencyListResponse::List>]
|
33
|
+
# # @param references [OnebusawaySDK::Models::References]
|
34
|
+
# # @param out_of_range [Boolean]
|
35
|
+
# #
|
36
|
+
# def initialize(limit_exceeded:, list:, references:, out_of_range: nil, **) = super
|
37
|
+
|
38
|
+
# def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
|
39
|
+
|
40
|
+
class List < OnebusawaySDK::BaseModel
|
41
|
+
# @!attribute id
|
42
|
+
#
|
43
|
+
# @return [String]
|
44
|
+
required :id, String
|
45
|
+
|
46
|
+
# @!attribute lat
|
47
|
+
#
|
48
|
+
# @return [Float]
|
49
|
+
required :lat, Float
|
50
|
+
|
51
|
+
# @!attribute lon
|
52
|
+
#
|
53
|
+
# @return [Float]
|
54
|
+
required :lon, Float
|
55
|
+
|
56
|
+
# @!attribute name
|
57
|
+
#
|
58
|
+
# @return [String]
|
59
|
+
required :name, String
|
60
|
+
|
61
|
+
# @!attribute parent
|
62
|
+
#
|
63
|
+
# @return [String]
|
64
|
+
required :parent, String
|
65
|
+
|
66
|
+
# @!attribute route_ids
|
67
|
+
#
|
68
|
+
# @return [Array<String>]
|
69
|
+
required :route_ids, OnebusawaySDK::ArrayOf[String], api_name: :routeIds
|
70
|
+
|
71
|
+
# @!attribute static_route_ids
|
72
|
+
#
|
73
|
+
# @return [Array<String>]
|
74
|
+
required :static_route_ids, OnebusawaySDK::ArrayOf[String], api_name: :staticRouteIds
|
75
|
+
|
76
|
+
# @!attribute [r] code
|
77
|
+
#
|
78
|
+
# @return [String, nil]
|
79
|
+
optional :code, String
|
80
|
+
|
81
|
+
# @!parse
|
82
|
+
# # @return [String]
|
83
|
+
# attr_writer :code
|
84
|
+
|
85
|
+
# @!attribute [r] direction
|
86
|
+
#
|
87
|
+
# @return [String, nil]
|
88
|
+
optional :direction, String
|
89
|
+
|
90
|
+
# @!parse
|
91
|
+
# # @return [String]
|
92
|
+
# attr_writer :direction
|
93
|
+
|
94
|
+
# @!attribute [r] location_type
|
95
|
+
#
|
96
|
+
# @return [Integer, nil]
|
97
|
+
optional :location_type, Integer, api_name: :locationType
|
98
|
+
|
99
|
+
# @!parse
|
100
|
+
# # @return [Integer]
|
101
|
+
# attr_writer :location_type
|
102
|
+
|
103
|
+
# @!attribute [r] wheelchair_boarding
|
104
|
+
#
|
105
|
+
# @return [String, nil]
|
106
|
+
optional :wheelchair_boarding, String, api_name: :wheelchairBoarding
|
107
|
+
|
108
|
+
# @!parse
|
109
|
+
# # @return [String]
|
110
|
+
# attr_writer :wheelchair_boarding
|
111
|
+
|
112
|
+
# @!parse
|
113
|
+
# # @param id [String]
|
114
|
+
# # @param lat [Float]
|
115
|
+
# # @param lon [Float]
|
116
|
+
# # @param name [String]
|
117
|
+
# # @param parent [String]
|
118
|
+
# # @param route_ids [Array<String>]
|
119
|
+
# # @param static_route_ids [Array<String>]
|
120
|
+
# # @param code [String]
|
121
|
+
# # @param direction [String]
|
122
|
+
# # @param location_type [Integer]
|
123
|
+
# # @param wheelchair_boarding [String]
|
124
|
+
# #
|
125
|
+
# def initialize(
|
126
|
+
# id:,
|
127
|
+
# lat:,
|
128
|
+
# lon:,
|
129
|
+
# name:,
|
130
|
+
# parent:,
|
131
|
+
# route_ids:,
|
132
|
+
# static_route_ids:,
|
133
|
+
# code: nil,
|
134
|
+
# direction: nil,
|
135
|
+
# location_type: nil,
|
136
|
+
# wheelchair_boarding: nil,
|
137
|
+
# **
|
138
|
+
# )
|
139
|
+
# super
|
140
|
+
# end
|
141
|
+
|
142
|
+
# def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
|
143
|
+
end
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
@@ -0,0 +1,74 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module OnebusawaySDK
|
4
|
+
module Models
|
5
|
+
class StopsForLocationListParams < OnebusawaySDK::BaseModel
|
6
|
+
# @!parse
|
7
|
+
# extend OnebusawaySDK::RequestParameters::Converter
|
8
|
+
include OnebusawaySDK::RequestParameters
|
9
|
+
|
10
|
+
# @!attribute lat
|
11
|
+
#
|
12
|
+
# @return [Float]
|
13
|
+
required :lat, Float
|
14
|
+
|
15
|
+
# @!attribute lon
|
16
|
+
#
|
17
|
+
# @return [Float]
|
18
|
+
required :lon, Float
|
19
|
+
|
20
|
+
# @!attribute [r] lat_span
|
21
|
+
# An alternative to radius to set the search bounding box (optional)
|
22
|
+
#
|
23
|
+
# @return [Float, nil]
|
24
|
+
optional :lat_span, Float, api_name: :latSpan
|
25
|
+
|
26
|
+
# @!parse
|
27
|
+
# # @return [Float]
|
28
|
+
# attr_writer :lat_span
|
29
|
+
|
30
|
+
# @!attribute [r] lon_span
|
31
|
+
# An alternative to radius to set the search bounding box (optional)
|
32
|
+
#
|
33
|
+
# @return [Float, nil]
|
34
|
+
optional :lon_span, Float, api_name: :lonSpan
|
35
|
+
|
36
|
+
# @!parse
|
37
|
+
# # @return [Float]
|
38
|
+
# attr_writer :lon_span
|
39
|
+
|
40
|
+
# @!attribute [r] query
|
41
|
+
# A search query string to filter the results
|
42
|
+
#
|
43
|
+
# @return [String, nil]
|
44
|
+
optional :query, String
|
45
|
+
|
46
|
+
# @!parse
|
47
|
+
# # @return [String]
|
48
|
+
# attr_writer :query
|
49
|
+
|
50
|
+
# @!attribute [r] radius
|
51
|
+
# The radius in meters to search within
|
52
|
+
#
|
53
|
+
# @return [Float, nil]
|
54
|
+
optional :radius, Float
|
55
|
+
|
56
|
+
# @!parse
|
57
|
+
# # @return [Float]
|
58
|
+
# attr_writer :radius
|
59
|
+
|
60
|
+
# @!parse
|
61
|
+
# # @param lat [Float]
|
62
|
+
# # @param lon [Float]
|
63
|
+
# # @param lat_span [Float]
|
64
|
+
# # @param lon_span [Float]
|
65
|
+
# # @param query [String]
|
66
|
+
# # @param radius [Float]
|
67
|
+
# # @param request_options [OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}]
|
68
|
+
# #
|
69
|
+
# def initialize(lat:, lon:, lat_span: nil, lon_span: nil, query: nil, radius: nil, request_options: {}, **) = super
|
70
|
+
|
71
|
+
# def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
@@ -0,0 +1,161 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module OnebusawaySDK
|
4
|
+
module Models
|
5
|
+
class StopsForLocationListResponse < OnebusawaySDK::Models::ResponseWrapper
|
6
|
+
# @!attribute data
|
7
|
+
#
|
8
|
+
# @return [OnebusawaySDK::Models::StopsForLocationListResponse::Data]
|
9
|
+
required :data, -> { OnebusawaySDK::Models::StopsForLocationListResponse::Data }
|
10
|
+
|
11
|
+
# @!parse
|
12
|
+
# # @param data [OnebusawaySDK::Models::StopsForLocationListResponse::Data]
|
13
|
+
# #
|
14
|
+
# def initialize(data:, **) = super
|
15
|
+
|
16
|
+
# def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
|
17
|
+
|
18
|
+
class Data < OnebusawaySDK::BaseModel
|
19
|
+
# @!attribute limit_exceeded
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
required :limit_exceeded, OnebusawaySDK::BooleanModel, api_name: :limitExceeded
|
23
|
+
|
24
|
+
# @!attribute list
|
25
|
+
#
|
26
|
+
# @return [Array<OnebusawaySDK::Models::StopsForLocationListResponse::Data::List>]
|
27
|
+
required :list,
|
28
|
+
-> { OnebusawaySDK::ArrayOf[OnebusawaySDK::Models::StopsForLocationListResponse::Data::List] }
|
29
|
+
|
30
|
+
# @!attribute references
|
31
|
+
#
|
32
|
+
# @return [OnebusawaySDK::Models::References]
|
33
|
+
required :references, -> { OnebusawaySDK::Models::References }
|
34
|
+
|
35
|
+
# @!attribute [r] out_of_range
|
36
|
+
#
|
37
|
+
# @return [Boolean, nil]
|
38
|
+
optional :out_of_range, OnebusawaySDK::BooleanModel, api_name: :outOfRange
|
39
|
+
|
40
|
+
# @!parse
|
41
|
+
# # @return [Boolean]
|
42
|
+
# attr_writer :out_of_range
|
43
|
+
|
44
|
+
# @!parse
|
45
|
+
# # @param limit_exceeded [Boolean]
|
46
|
+
# # @param list [Array<OnebusawaySDK::Models::StopsForLocationListResponse::Data::List>]
|
47
|
+
# # @param references [OnebusawaySDK::Models::References]
|
48
|
+
# # @param out_of_range [Boolean]
|
49
|
+
# #
|
50
|
+
# def initialize(limit_exceeded:, list:, references:, out_of_range: nil, **) = super
|
51
|
+
|
52
|
+
# def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
|
53
|
+
|
54
|
+
class List < OnebusawaySDK::BaseModel
|
55
|
+
# @!attribute id
|
56
|
+
#
|
57
|
+
# @return [String]
|
58
|
+
required :id, String
|
59
|
+
|
60
|
+
# @!attribute lat
|
61
|
+
#
|
62
|
+
# @return [Float]
|
63
|
+
required :lat, Float
|
64
|
+
|
65
|
+
# @!attribute lon
|
66
|
+
#
|
67
|
+
# @return [Float]
|
68
|
+
required :lon, Float
|
69
|
+
|
70
|
+
# @!attribute name
|
71
|
+
#
|
72
|
+
# @return [String]
|
73
|
+
required :name, String
|
74
|
+
|
75
|
+
# @!attribute parent
|
76
|
+
#
|
77
|
+
# @return [String]
|
78
|
+
required :parent, String
|
79
|
+
|
80
|
+
# @!attribute route_ids
|
81
|
+
#
|
82
|
+
# @return [Array<String>]
|
83
|
+
required :route_ids, OnebusawaySDK::ArrayOf[String], api_name: :routeIds
|
84
|
+
|
85
|
+
# @!attribute static_route_ids
|
86
|
+
#
|
87
|
+
# @return [Array<String>]
|
88
|
+
required :static_route_ids, OnebusawaySDK::ArrayOf[String], api_name: :staticRouteIds
|
89
|
+
|
90
|
+
# @!attribute [r] code
|
91
|
+
#
|
92
|
+
# @return [String, nil]
|
93
|
+
optional :code, String
|
94
|
+
|
95
|
+
# @!parse
|
96
|
+
# # @return [String]
|
97
|
+
# attr_writer :code
|
98
|
+
|
99
|
+
# @!attribute [r] direction
|
100
|
+
#
|
101
|
+
# @return [String, nil]
|
102
|
+
optional :direction, String
|
103
|
+
|
104
|
+
# @!parse
|
105
|
+
# # @return [String]
|
106
|
+
# attr_writer :direction
|
107
|
+
|
108
|
+
# @!attribute [r] location_type
|
109
|
+
#
|
110
|
+
# @return [Integer, nil]
|
111
|
+
optional :location_type, Integer, api_name: :locationType
|
112
|
+
|
113
|
+
# @!parse
|
114
|
+
# # @return [Integer]
|
115
|
+
# attr_writer :location_type
|
116
|
+
|
117
|
+
# @!attribute [r] wheelchair_boarding
|
118
|
+
#
|
119
|
+
# @return [String, nil]
|
120
|
+
optional :wheelchair_boarding, String, api_name: :wheelchairBoarding
|
121
|
+
|
122
|
+
# @!parse
|
123
|
+
# # @return [String]
|
124
|
+
# attr_writer :wheelchair_boarding
|
125
|
+
|
126
|
+
# @!parse
|
127
|
+
# # @param id [String]
|
128
|
+
# # @param lat [Float]
|
129
|
+
# # @param lon [Float]
|
130
|
+
# # @param name [String]
|
131
|
+
# # @param parent [String]
|
132
|
+
# # @param route_ids [Array<String>]
|
133
|
+
# # @param static_route_ids [Array<String>]
|
134
|
+
# # @param code [String]
|
135
|
+
# # @param direction [String]
|
136
|
+
# # @param location_type [Integer]
|
137
|
+
# # @param wheelchair_boarding [String]
|
138
|
+
# #
|
139
|
+
# def initialize(
|
140
|
+
# id:,
|
141
|
+
# lat:,
|
142
|
+
# lon:,
|
143
|
+
# name:,
|
144
|
+
# parent:,
|
145
|
+
# route_ids:,
|
146
|
+
# static_route_ids:,
|
147
|
+
# code: nil,
|
148
|
+
# direction: nil,
|
149
|
+
# location_type: nil,
|
150
|
+
# wheelchair_boarding: nil,
|
151
|
+
# **
|
152
|
+
# )
|
153
|
+
# super
|
154
|
+
# end
|
155
|
+
|
156
|
+
# def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|
161
|
+
end
|