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.
Files changed (293) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +124 -0
  3. data/lib/onebusaway-sdk/base_client.rb +483 -0
  4. data/lib/onebusaway-sdk/base_model.rb +1188 -0
  5. data/lib/onebusaway-sdk/base_page.rb +40 -0
  6. data/lib/onebusaway-sdk/client.rb +181 -0
  7. data/lib/onebusaway-sdk/errors.rb +187 -0
  8. data/lib/onebusaway-sdk/extern.rb +10 -0
  9. data/lib/onebusaway-sdk/models/agencies_with_coverage_list_params.rb +18 -0
  10. data/lib/onebusaway-sdk/models/agencies_with_coverage_list_response.rb +84 -0
  11. data/lib/onebusaway-sdk/models/agency_retrieve_params.rb +18 -0
  12. data/lib/onebusaway-sdk/models/agency_retrieve_response.rb +151 -0
  13. data/lib/onebusaway-sdk/models/arrival_and_departure_list_params.rb +51 -0
  14. data/lib/onebusaway-sdk/models/arrival_and_departure_list_response.rb +767 -0
  15. data/lib/onebusaway-sdk/models/arrival_and_departure_retrieve_params.rb +60 -0
  16. data/lib/onebusaway-sdk/models/arrival_and_departure_retrieve_response.rb +751 -0
  17. data/lib/onebusaway-sdk/models/block_retrieve_params.rb +18 -0
  18. data/lib/onebusaway-sdk/models/block_retrieve_response.rb +205 -0
  19. data/lib/onebusaway-sdk/models/config_retrieve_params.rb +18 -0
  20. data/lib/onebusaway-sdk/models/config_retrieve_response.rb +331 -0
  21. data/lib/onebusaway-sdk/models/current_time_retrieve_params.rb +18 -0
  22. data/lib/onebusaway-sdk/models/current_time_retrieve_response.rb +67 -0
  23. data/lib/onebusaway-sdk/models/references.rb +1071 -0
  24. data/lib/onebusaway-sdk/models/report_problem_with_stop_retrieve_params.rb +117 -0
  25. data/lib/onebusaway-sdk/models/report_problem_with_trip_retrieve_params.rb +180 -0
  26. data/lib/onebusaway-sdk/models/response_wrapper.rb +37 -0
  27. data/lib/onebusaway-sdk/models/route_ids_for_agency_list_params.rb +18 -0
  28. data/lib/onebusaway-sdk/models/route_ids_for_agency_list_response.rb +45 -0
  29. data/lib/onebusaway-sdk/models/route_retrieve_params.rb +18 -0
  30. data/lib/onebusaway-sdk/models/route_retrieve_response.rb +149 -0
  31. data/lib/onebusaway-sdk/models/routes_for_agency_list_params.rb +18 -0
  32. data/lib/onebusaway-sdk/models/routes_for_agency_list_response.rb +156 -0
  33. data/lib/onebusaway-sdk/models/routes_for_location_list_params.rb +70 -0
  34. data/lib/onebusaway-sdk/models/routes_for_location_list_response.rb +162 -0
  35. data/lib/onebusaway-sdk/models/schedule_for_route_retrieve_params.rb +30 -0
  36. data/lib/onebusaway-sdk/models/schedule_for_route_retrieve_response.rb +453 -0
  37. data/lib/onebusaway-sdk/models/schedule_for_stop_retrieve_params.rb +30 -0
  38. data/lib/onebusaway-sdk/models/schedule_for_stop_retrieve_response.rb +244 -0
  39. data/lib/onebusaway-sdk/models/search_for_route_list_params.rb +36 -0
  40. data/lib/onebusaway-sdk/models/search_for_route_list_response.rb +166 -0
  41. data/lib/onebusaway-sdk/models/search_for_stop_list_params.rb +36 -0
  42. data/lib/onebusaway-sdk/models/search_for_stop_list_response.rb +161 -0
  43. data/lib/onebusaway-sdk/models/shape_retrieve_params.rb +18 -0
  44. data/lib/onebusaway-sdk/models/shape_retrieve_response.rb +70 -0
  45. data/lib/onebusaway-sdk/models/stop_ids_for_agency_list_params.rb +18 -0
  46. data/lib/onebusaway-sdk/models/stop_ids_for_agency_list_response.rb +45 -0
  47. data/lib/onebusaway-sdk/models/stop_retrieve_params.rb +18 -0
  48. data/lib/onebusaway-sdk/models/stop_retrieve_response.rb +144 -0
  49. data/lib/onebusaway-sdk/models/stops_for_agency_list_params.rb +18 -0
  50. data/lib/onebusaway-sdk/models/stops_for_agency_list_response.rb +146 -0
  51. data/lib/onebusaway-sdk/models/stops_for_location_list_params.rb +74 -0
  52. data/lib/onebusaway-sdk/models/stops_for_location_list_response.rb +161 -0
  53. data/lib/onebusaway-sdk/models/stops_for_route_list_params.rb +40 -0
  54. data/lib/onebusaway-sdk/models/stops_for_route_list_response.rb +253 -0
  55. data/lib/onebusaway-sdk/models/trip_detail_retrieve_params.rb +86 -0
  56. data/lib/onebusaway-sdk/models/trip_detail_retrieve_response.rb +561 -0
  57. data/lib/onebusaway-sdk/models/trip_for_vehicle_retrieve_params.rb +65 -0
  58. data/lib/onebusaway-sdk/models/trip_for_vehicle_retrieve_response.rb +561 -0
  59. data/lib/onebusaway-sdk/models/trip_retrieve_params.rb +18 -0
  60. data/lib/onebusaway-sdk/models/trip_retrieve_response.rb +160 -0
  61. data/lib/onebusaway-sdk/models/trips_for_location_list_params.rb +93 -0
  62. data/lib/onebusaway-sdk/models/trips_for_location_list_response.rb +572 -0
  63. data/lib/onebusaway-sdk/models/trips_for_route_list_params.rb +52 -0
  64. data/lib/onebusaway-sdk/models/trips_for_route_list_response.rb +559 -0
  65. data/lib/onebusaway-sdk/models/vehicles_for_agency_list_params.rb +29 -0
  66. data/lib/onebusaway-sdk/models/vehicles_for_agency_list_response.rb +529 -0
  67. data/lib/onebusaway-sdk/pooled_net_requester.rb +170 -0
  68. data/lib/onebusaway-sdk/request_options.rb +115 -0
  69. data/lib/onebusaway-sdk/resources/agencies_with_coverage.rb +31 -0
  70. data/lib/onebusaway-sdk/resources/agency.rb +32 -0
  71. data/lib/onebusaway-sdk/resources/arrival_and_departure.rb +71 -0
  72. data/lib/onebusaway-sdk/resources/block.rb +32 -0
  73. data/lib/onebusaway-sdk/resources/config.rb +30 -0
  74. data/lib/onebusaway-sdk/resources/current_time.rb +30 -0
  75. data/lib/onebusaway-sdk/resources/report_problem_with_stop.rb +44 -0
  76. data/lib/onebusaway-sdk/resources/report_problem_with_trip.rb +54 -0
  77. data/lib/onebusaway-sdk/resources/route.rb +32 -0
  78. data/lib/onebusaway-sdk/resources/route_ids_for_agency.rb +32 -0
  79. data/lib/onebusaway-sdk/resources/routes_for_agency.rb +32 -0
  80. data/lib/onebusaway-sdk/resources/routes_for_location.rb +44 -0
  81. data/lib/onebusaway-sdk/resources/schedule_for_route.rb +37 -0
  82. data/lib/onebusaway-sdk/resources/schedule_for_stop.rb +37 -0
  83. data/lib/onebusaway-sdk/resources/search_for_route.rb +36 -0
  84. data/lib/onebusaway-sdk/resources/search_for_stop.rb +36 -0
  85. data/lib/onebusaway-sdk/resources/shape.rb +32 -0
  86. data/lib/onebusaway-sdk/resources/stop.rb +32 -0
  87. data/lib/onebusaway-sdk/resources/stop_ids_for_agency.rb +32 -0
  88. data/lib/onebusaway-sdk/resources/stops_for_agency.rb +32 -0
  89. data/lib/onebusaway-sdk/resources/stops_for_location.rb +44 -0
  90. data/lib/onebusaway-sdk/resources/stops_for_route.rb +38 -0
  91. data/lib/onebusaway-sdk/resources/trip.rb +32 -0
  92. data/lib/onebusaway-sdk/resources/trip_details.rb +47 -0
  93. data/lib/onebusaway-sdk/resources/trip_for_vehicle.rb +45 -0
  94. data/lib/onebusaway-sdk/resources/trips_for_location.rb +48 -0
  95. data/lib/onebusaway-sdk/resources/trips_for_route.rb +41 -0
  96. data/lib/onebusaway-sdk/resources/vehicles_for_agency.rb +36 -0
  97. data/lib/onebusaway-sdk/util.rb +512 -0
  98. data/lib/onebusaway-sdk/version.rb +5 -0
  99. data/lib/onebusaway-sdk.rb +116 -0
  100. data/manifest.yaml +13 -0
  101. data/rbi/lib/onebusaway-sdk/base_client.rbi +162 -0
  102. data/rbi/lib/onebusaway-sdk/base_model.rbi +478 -0
  103. data/rbi/lib/onebusaway-sdk/base_page.rbi +39 -0
  104. data/rbi/lib/onebusaway-sdk/client.rbi +154 -0
  105. data/rbi/lib/onebusaway-sdk/errors.rbi +145 -0
  106. data/rbi/lib/onebusaway-sdk/extern.rbi +7 -0
  107. data/rbi/lib/onebusaway-sdk/models/agencies_with_coverage_list_params.rbi +18 -0
  108. data/rbi/lib/onebusaway-sdk/models/agencies_with_coverage_list_response.rbi +131 -0
  109. data/rbi/lib/onebusaway-sdk/models/agency_retrieve_params.rbi +18 -0
  110. data/rbi/lib/onebusaway-sdk/models/agency_retrieve_response.rbi +210 -0
  111. data/rbi/lib/onebusaway-sdk/models/arrival_and_departure_list_params.rbi +60 -0
  112. data/rbi/lib/onebusaway-sdk/models/arrival_and_departure_list_response.rbi +914 -0
  113. data/rbi/lib/onebusaway-sdk/models/arrival_and_departure_retrieve_params.rbi +87 -0
  114. data/rbi/lib/onebusaway-sdk/models/arrival_and_departure_retrieve_response.rbi +857 -0
  115. data/rbi/lib/onebusaway-sdk/models/block_retrieve_params.rbi +18 -0
  116. data/rbi/lib/onebusaway-sdk/models/block_retrieve_response.rbi +383 -0
  117. data/rbi/lib/onebusaway-sdk/models/config_retrieve_params.rbi +18 -0
  118. data/rbi/lib/onebusaway-sdk/models/config_retrieve_response.rbi +389 -0
  119. data/rbi/lib/onebusaway-sdk/models/current_time_retrieve_params.rbi +18 -0
  120. data/rbi/lib/onebusaway-sdk/models/current_time_retrieve_response.rbi +95 -0
  121. data/rbi/lib/onebusaway-sdk/models/references.rbi +1265 -0
  122. data/rbi/lib/onebusaway-sdk/models/report_problem_with_stop_retrieve_params.rbi +101 -0
  123. data/rbi/lib/onebusaway-sdk/models/report_problem_with_trip_retrieve_params.rbi +157 -0
  124. data/rbi/lib/onebusaway-sdk/models/response_wrapper.rbi +47 -0
  125. data/rbi/lib/onebusaway-sdk/models/route_ids_for_agency_list_params.rbi +18 -0
  126. data/rbi/lib/onebusaway-sdk/models/route_ids_for_agency_list_response.rbi +68 -0
  127. data/rbi/lib/onebusaway-sdk/models/route_retrieve_params.rbi +18 -0
  128. data/rbi/lib/onebusaway-sdk/models/route_retrieve_response.rbi +200 -0
  129. data/rbi/lib/onebusaway-sdk/models/routes_for_agency_list_params.rbi +18 -0
  130. data/rbi/lib/onebusaway-sdk/models/routes_for_agency_list_response.rbi +210 -0
  131. data/rbi/lib/onebusaway-sdk/models/routes_for_location_list_params.rbi +90 -0
  132. data/rbi/lib/onebusaway-sdk/models/routes_for_location_list_response.rbi +220 -0
  133. data/rbi/lib/onebusaway-sdk/models/schedule_for_route_retrieve_params.rbi +34 -0
  134. data/rbi/lib/onebusaway-sdk/models/schedule_for_route_retrieve_response.rbi +675 -0
  135. data/rbi/lib/onebusaway-sdk/models/schedule_for_stop_retrieve_params.rbi +34 -0
  136. data/rbi/lib/onebusaway-sdk/models/schedule_for_stop_retrieve_response.rbi +457 -0
  137. data/rbi/lib/onebusaway-sdk/models/search_for_route_list_params.rbi +43 -0
  138. data/rbi/lib/onebusaway-sdk/models/search_for_route_list_response.rbi +220 -0
  139. data/rbi/lib/onebusaway-sdk/models/search_for_stop_list_params.rbi +43 -0
  140. data/rbi/lib/onebusaway-sdk/models/search_for_stop_list_response.rbi +231 -0
  141. data/rbi/lib/onebusaway-sdk/models/shape_retrieve_params.rbi +18 -0
  142. data/rbi/lib/onebusaway-sdk/models/shape_retrieve_response.rbi +103 -0
  143. data/rbi/lib/onebusaway-sdk/models/stop_ids_for_agency_list_params.rbi +18 -0
  144. data/rbi/lib/onebusaway-sdk/models/stop_ids_for_agency_list_response.rbi +68 -0
  145. data/rbi/lib/onebusaway-sdk/models/stop_retrieve_params.rbi +18 -0
  146. data/rbi/lib/onebusaway-sdk/models/stop_retrieve_response.rbi +211 -0
  147. data/rbi/lib/onebusaway-sdk/models/stops_for_agency_list_params.rbi +18 -0
  148. data/rbi/lib/onebusaway-sdk/models/stops_for_agency_list_response.rbi +210 -0
  149. data/rbi/lib/onebusaway-sdk/models/stops_for_location_list_params.rbi +90 -0
  150. data/rbi/lib/onebusaway-sdk/models/stops_for_location_list_response.rbi +231 -0
  151. data/rbi/lib/onebusaway-sdk/models/stops_for_route_list_params.rbi +48 -0
  152. data/rbi/lib/onebusaway-sdk/models/stops_for_route_list_response.rbi +307 -0
  153. data/rbi/lib/onebusaway-sdk/models/trip_detail_retrieve_params.rbi +87 -0
  154. data/rbi/lib/onebusaway-sdk/models/trip_detail_retrieve_response.rbi +702 -0
  155. data/rbi/lib/onebusaway-sdk/models/trip_for_vehicle_retrieve_params.rbi +76 -0
  156. data/rbi/lib/onebusaway-sdk/models/trip_for_vehicle_retrieve_response.rbi +704 -0
  157. data/rbi/lib/onebusaway-sdk/models/trip_retrieve_params.rbi +18 -0
  158. data/rbi/lib/onebusaway-sdk/models/trip_retrieve_response.rbi +211 -0
  159. data/rbi/lib/onebusaway-sdk/models/trips_for_location_list_params.rbi +109 -0
  160. data/rbi/lib/onebusaway-sdk/models/trips_for_location_list_response.rbi +715 -0
  161. data/rbi/lib/onebusaway-sdk/models/trips_for_route_list_params.rbi +60 -0
  162. data/rbi/lib/onebusaway-sdk/models/trips_for_route_list_response.rbi +705 -0
  163. data/rbi/lib/onebusaway-sdk/models/vehicles_for_agency_list_params.rbi +35 -0
  164. data/rbi/lib/onebusaway-sdk/models/vehicles_for_agency_list_response.rbi +633 -0
  165. data/rbi/lib/onebusaway-sdk/pooled_net_requester.rbi +36 -0
  166. data/rbi/lib/onebusaway-sdk/request_options.rbi +84 -0
  167. data/rbi/lib/onebusaway-sdk/resources/agencies_with_coverage.rbi +18 -0
  168. data/rbi/lib/onebusaway-sdk/resources/agency.rbi +21 -0
  169. data/rbi/lib/onebusaway-sdk/resources/arrival_and_departure.rbi +47 -0
  170. data/rbi/lib/onebusaway-sdk/resources/block.rbi +21 -0
  171. data/rbi/lib/onebusaway-sdk/resources/config.rbi +18 -0
  172. data/rbi/lib/onebusaway-sdk/resources/current_time.rbi +18 -0
  173. data/rbi/lib/onebusaway-sdk/resources/report_problem_with_stop.rbi +34 -0
  174. data/rbi/lib/onebusaway-sdk/resources/report_problem_with_trip.rbi +44 -0
  175. data/rbi/lib/onebusaway-sdk/resources/route.rbi +21 -0
  176. data/rbi/lib/onebusaway-sdk/resources/route_ids_for_agency.rbi +21 -0
  177. data/rbi/lib/onebusaway-sdk/resources/routes_for_agency.rbi +21 -0
  178. data/rbi/lib/onebusaway-sdk/resources/routes_for_location.rbi +26 -0
  179. data/rbi/lib/onebusaway-sdk/resources/schedule_for_route.rbi +22 -0
  180. data/rbi/lib/onebusaway-sdk/resources/schedule_for_stop.rbi +22 -0
  181. data/rbi/lib/onebusaway-sdk/resources/search_for_route.rbi +22 -0
  182. data/rbi/lib/onebusaway-sdk/resources/search_for_stop.rbi +22 -0
  183. data/rbi/lib/onebusaway-sdk/resources/shape.rbi +21 -0
  184. data/rbi/lib/onebusaway-sdk/resources/stop.rbi +21 -0
  185. data/rbi/lib/onebusaway-sdk/resources/stop_ids_for_agency.rbi +21 -0
  186. data/rbi/lib/onebusaway-sdk/resources/stops_for_agency.rbi +21 -0
  187. data/rbi/lib/onebusaway-sdk/resources/stops_for_location.rbi +26 -0
  188. data/rbi/lib/onebusaway-sdk/resources/stops_for_route.rbi +23 -0
  189. data/rbi/lib/onebusaway-sdk/resources/trip.rbi +21 -0
  190. data/rbi/lib/onebusaway-sdk/resources/trip_details.rbi +34 -0
  191. data/rbi/lib/onebusaway-sdk/resources/trip_for_vehicle.rbi +32 -0
  192. data/rbi/lib/onebusaway-sdk/resources/trips_for_location.rbi +36 -0
  193. data/rbi/lib/onebusaway-sdk/resources/trips_for_route.rbi +24 -0
  194. data/rbi/lib/onebusaway-sdk/resources/vehicles_for_agency.rbi +22 -0
  195. data/rbi/lib/onebusaway-sdk/util.rbi +136 -0
  196. data/rbi/lib/onebusaway-sdk/version.rbi +5 -0
  197. data/sig/onebusaway-sdk/base_client.rbs +101 -0
  198. data/sig/onebusaway-sdk/base_model.rbs +244 -0
  199. data/sig/onebusaway-sdk/base_page.rbs +20 -0
  200. data/sig/onebusaway-sdk/client.rbs +80 -0
  201. data/sig/onebusaway-sdk/errors.rbs +98 -0
  202. data/sig/onebusaway-sdk/extern.rbs +4 -0
  203. data/sig/onebusaway-sdk/models/agencies_with_coverage_list_params.rbs +20 -0
  204. data/sig/onebusaway-sdk/models/agencies_with_coverage_list_response.rbs +85 -0
  205. data/sig/onebusaway-sdk/models/agency_retrieve_params.rbs +19 -0
  206. data/sig/onebusaway-sdk/models/agency_retrieve_response.rbs +115 -0
  207. data/sig/onebusaway-sdk/models/arrival_and_departure_list_params.rbs +38 -0
  208. data/sig/onebusaway-sdk/models/arrival_and_departure_list_response.rbs +447 -0
  209. data/sig/onebusaway-sdk/models/arrival_and_departure_retrieve_params.rbs +50 -0
  210. data/sig/onebusaway-sdk/models/arrival_and_departure_retrieve_response.rbs +427 -0
  211. data/sig/onebusaway-sdk/models/block_retrieve_params.rbs +19 -0
  212. data/sig/onebusaway-sdk/models/block_retrieve_response.rbs +201 -0
  213. data/sig/onebusaway-sdk/models/config_retrieve_params.rbs +19 -0
  214. data/sig/onebusaway-sdk/models/config_retrieve_response.rbs +227 -0
  215. data/sig/onebusaway-sdk/models/current_time_retrieve_params.rbs +19 -0
  216. data/sig/onebusaway-sdk/models/current_time_retrieve_response.rbs +64 -0
  217. data/sig/onebusaway-sdk/models/references.rbs +732 -0
  218. data/sig/onebusaway-sdk/models/report_problem_with_stop_retrieve_params.rbs +73 -0
  219. data/sig/onebusaway-sdk/models/report_problem_with_trip_retrieve_params.rbs +105 -0
  220. data/sig/onebusaway-sdk/models/response_wrapper.rbs +30 -0
  221. data/sig/onebusaway-sdk/models/route_ids_for_agency_list_params.rbs +20 -0
  222. data/sig/onebusaway-sdk/models/route_ids_for_agency_list_response.rbs +49 -0
  223. data/sig/onebusaway-sdk/models/route_retrieve_params.rbs +19 -0
  224. data/sig/onebusaway-sdk/models/route_retrieve_response.rbs +113 -0
  225. data/sig/onebusaway-sdk/models/routes_for_agency_list_params.rbs +20 -0
  226. data/sig/onebusaway-sdk/models/routes_for_agency_list_response.rbs +117 -0
  227. data/sig/onebusaway-sdk/models/routes_for_location_list_params.rbs +56 -0
  228. data/sig/onebusaway-sdk/models/routes_for_location_list_response.rbs +123 -0
  229. data/sig/onebusaway-sdk/models/schedule_for_route_retrieve_params.rbs +24 -0
  230. data/sig/onebusaway-sdk/models/schedule_for_route_retrieve_response.rbs +341 -0
  231. data/sig/onebusaway-sdk/models/schedule_for_stop_retrieve_params.rbs +24 -0
  232. data/sig/onebusaway-sdk/models/schedule_for_stop_retrieve_response.rbs +215 -0
  233. data/sig/onebusaway-sdk/models/search_for_route_list_params.rbs +30 -0
  234. data/sig/onebusaway-sdk/models/search_for_route_list_response.rbs +125 -0
  235. data/sig/onebusaway-sdk/models/search_for_stop_list_params.rbs +30 -0
  236. data/sig/onebusaway-sdk/models/search_for_stop_list_response.rbs +123 -0
  237. data/sig/onebusaway-sdk/models/shape_retrieve_params.rbs +19 -0
  238. data/sig/onebusaway-sdk/models/shape_retrieve_response.rbs +64 -0
  239. data/sig/onebusaway-sdk/models/stop_ids_for_agency_list_params.rbs +20 -0
  240. data/sig/onebusaway-sdk/models/stop_ids_for_agency_list_response.rbs +49 -0
  241. data/sig/onebusaway-sdk/models/stop_retrieve_params.rbs +19 -0
  242. data/sig/onebusaway-sdk/models/stop_retrieve_response.rbs +111 -0
  243. data/sig/onebusaway-sdk/models/stops_for_agency_list_params.rbs +19 -0
  244. data/sig/onebusaway-sdk/models/stops_for_agency_list_response.rbs +105 -0
  245. data/sig/onebusaway-sdk/models/stops_for_location_list_params.rbs +56 -0
  246. data/sig/onebusaway-sdk/models/stops_for_location_list_response.rbs +123 -0
  247. data/sig/onebusaway-sdk/models/stops_for_route_list_params.rbs +33 -0
  248. data/sig/onebusaway-sdk/models/stops_for_route_list_response.rbs +206 -0
  249. data/sig/onebusaway-sdk/models/trip_detail_retrieve_params.rbs +54 -0
  250. data/sig/onebusaway-sdk/models/trip_detail_retrieve_response.rbs +375 -0
  251. data/sig/onebusaway-sdk/models/trip_for_vehicle_retrieve_params.rbs +48 -0
  252. data/sig/onebusaway-sdk/models/trip_for_vehicle_retrieve_response.rbs +377 -0
  253. data/sig/onebusaway-sdk/models/trip_retrieve_params.rbs +19 -0
  254. data/sig/onebusaway-sdk/models/trip_retrieve_response.rbs +119 -0
  255. data/sig/onebusaway-sdk/models/trips_for_location_list_params.rbs +58 -0
  256. data/sig/onebusaway-sdk/models/trips_for_location_list_response.rbs +379 -0
  257. data/sig/onebusaway-sdk/models/trips_for_route_list_params.rbs +38 -0
  258. data/sig/onebusaway-sdk/models/trips_for_route_list_response.rbs +371 -0
  259. data/sig/onebusaway-sdk/models/vehicles_for_agency_list_params.rbs +24 -0
  260. data/sig/onebusaway-sdk/models/vehicles_for_agency_list_response.rbs +332 -0
  261. data/sig/onebusaway-sdk/pooled_net_requester.rbs +28 -0
  262. data/sig/onebusaway-sdk/request_options.rbs +42 -0
  263. data/sig/onebusaway-sdk/resources/agencies_with_coverage.rbs +16 -0
  264. data/sig/onebusaway-sdk/resources/agency.rbs +18 -0
  265. data/sig/onebusaway-sdk/resources/arrival_and_departure.rbs +37 -0
  266. data/sig/onebusaway-sdk/resources/block.rbs +18 -0
  267. data/sig/onebusaway-sdk/resources/config.rbs +16 -0
  268. data/sig/onebusaway-sdk/resources/current_time.rbs +16 -0
  269. data/sig/onebusaway-sdk/resources/report_problem_with_stop.rbs +23 -0
  270. data/sig/onebusaway-sdk/resources/report_problem_with_trip.rbs +28 -0
  271. data/sig/onebusaway-sdk/resources/route.rbs +18 -0
  272. data/sig/onebusaway-sdk/resources/route_ids_for_agency.rbs +18 -0
  273. data/sig/onebusaway-sdk/resources/routes_for_agency.rbs +18 -0
  274. data/sig/onebusaway-sdk/resources/routes_for_location.rbs +22 -0
  275. data/sig/onebusaway-sdk/resources/schedule_for_route.rbs +19 -0
  276. data/sig/onebusaway-sdk/resources/schedule_for_stop.rbs +19 -0
  277. data/sig/onebusaway-sdk/resources/search_for_route.rbs +18 -0
  278. data/sig/onebusaway-sdk/resources/search_for_stop.rbs +18 -0
  279. data/sig/onebusaway-sdk/resources/shape.rbs +18 -0
  280. data/sig/onebusaway-sdk/resources/stop.rbs +18 -0
  281. data/sig/onebusaway-sdk/resources/stop_ids_for_agency.rbs +18 -0
  282. data/sig/onebusaway-sdk/resources/stops_for_agency.rbs +18 -0
  283. data/sig/onebusaway-sdk/resources/stops_for_location.rbs +22 -0
  284. data/sig/onebusaway-sdk/resources/stops_for_route.rbs +20 -0
  285. data/sig/onebusaway-sdk/resources/trip.rbs +18 -0
  286. data/sig/onebusaway-sdk/resources/trip_details.rbs +23 -0
  287. data/sig/onebusaway-sdk/resources/trip_for_vehicle.rbs +22 -0
  288. data/sig/onebusaway-sdk/resources/trips_for_location.rbs +23 -0
  289. data/sig/onebusaway-sdk/resources/trips_for_route.rbs +21 -0
  290. data/sig/onebusaway-sdk/resources/vehicles_for_agency.rbs +19 -0
  291. data/sig/onebusaway-sdk/util.rbs +90 -0
  292. data/sig/onebusaway-sdk/version.rbs +3 -0
  293. metadata +350 -0
@@ -0,0 +1,1071 @@
1
+ # frozen_string_literal: true
2
+
3
+ module OnebusawaySDK
4
+ module Models
5
+ class References < OnebusawaySDK::BaseModel
6
+ # @!attribute agencies
7
+ #
8
+ # @return [Array<OnebusawaySDK::Models::References::Agency>]
9
+ required :agencies, -> { OnebusawaySDK::ArrayOf[OnebusawaySDK::Models::References::Agency] }
10
+
11
+ # @!attribute routes
12
+ #
13
+ # @return [Array<OnebusawaySDK::Models::References::Route>]
14
+ required :routes, -> { OnebusawaySDK::ArrayOf[OnebusawaySDK::Models::References::Route] }
15
+
16
+ # @!attribute situations
17
+ #
18
+ # @return [Array<OnebusawaySDK::Models::References::Situation>]
19
+ required :situations, -> { OnebusawaySDK::ArrayOf[OnebusawaySDK::Models::References::Situation] }
20
+
21
+ # @!attribute stops
22
+ #
23
+ # @return [Array<OnebusawaySDK::Models::References::Stop>]
24
+ required :stops, -> { OnebusawaySDK::ArrayOf[OnebusawaySDK::Models::References::Stop] }
25
+
26
+ # @!attribute stop_times
27
+ #
28
+ # @return [Array<OnebusawaySDK::Models::References::StopTime>]
29
+ required :stop_times,
30
+ -> { OnebusawaySDK::ArrayOf[OnebusawaySDK::Models::References::StopTime] },
31
+ api_name: :stopTimes
32
+
33
+ # @!attribute trips
34
+ #
35
+ # @return [Array<OnebusawaySDK::Models::References::Trip>]
36
+ required :trips, -> { OnebusawaySDK::ArrayOf[OnebusawaySDK::Models::References::Trip] }
37
+
38
+ # @!parse
39
+ # # @param agencies [Array<OnebusawaySDK::Models::References::Agency>]
40
+ # # @param routes [Array<OnebusawaySDK::Models::References::Route>]
41
+ # # @param situations [Array<OnebusawaySDK::Models::References::Situation>]
42
+ # # @param stops [Array<OnebusawaySDK::Models::References::Stop>]
43
+ # # @param stop_times [Array<OnebusawaySDK::Models::References::StopTime>]
44
+ # # @param trips [Array<OnebusawaySDK::Models::References::Trip>]
45
+ # #
46
+ # def initialize(agencies:, routes:, situations:, stops:, stop_times:, trips:, **) = super
47
+
48
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
49
+
50
+ class Agency < OnebusawaySDK::BaseModel
51
+ # @!attribute id
52
+ #
53
+ # @return [String]
54
+ required :id, String
55
+
56
+ # @!attribute name
57
+ #
58
+ # @return [String]
59
+ required :name, String
60
+
61
+ # @!attribute timezone
62
+ #
63
+ # @return [String]
64
+ required :timezone, String
65
+
66
+ # @!attribute url
67
+ #
68
+ # @return [String]
69
+ required :url, String
70
+
71
+ # @!attribute [r] disclaimer
72
+ #
73
+ # @return [String, nil]
74
+ optional :disclaimer, String
75
+
76
+ # @!parse
77
+ # # @return [String]
78
+ # attr_writer :disclaimer
79
+
80
+ # @!attribute [r] email
81
+ #
82
+ # @return [String, nil]
83
+ optional :email, String
84
+
85
+ # @!parse
86
+ # # @return [String]
87
+ # attr_writer :email
88
+
89
+ # @!attribute [r] fare_url
90
+ #
91
+ # @return [String, nil]
92
+ optional :fare_url, String, api_name: :fareUrl
93
+
94
+ # @!parse
95
+ # # @return [String]
96
+ # attr_writer :fare_url
97
+
98
+ # @!attribute [r] lang
99
+ #
100
+ # @return [String, nil]
101
+ optional :lang, String
102
+
103
+ # @!parse
104
+ # # @return [String]
105
+ # attr_writer :lang
106
+
107
+ # @!attribute [r] phone
108
+ #
109
+ # @return [String, nil]
110
+ optional :phone, String
111
+
112
+ # @!parse
113
+ # # @return [String]
114
+ # attr_writer :phone
115
+
116
+ # @!attribute [r] private_service
117
+ #
118
+ # @return [Boolean, nil]
119
+ optional :private_service, OnebusawaySDK::BooleanModel, api_name: :privateService
120
+
121
+ # @!parse
122
+ # # @return [Boolean]
123
+ # attr_writer :private_service
124
+
125
+ # @!parse
126
+ # # @param id [String]
127
+ # # @param name [String]
128
+ # # @param timezone [String]
129
+ # # @param url [String]
130
+ # # @param disclaimer [String]
131
+ # # @param email [String]
132
+ # # @param fare_url [String]
133
+ # # @param lang [String]
134
+ # # @param phone [String]
135
+ # # @param private_service [Boolean]
136
+ # #
137
+ # def initialize(
138
+ # id:,
139
+ # name:,
140
+ # timezone:,
141
+ # url:,
142
+ # disclaimer: nil,
143
+ # email: nil,
144
+ # fare_url: nil,
145
+ # lang: nil,
146
+ # phone: nil,
147
+ # private_service: nil,
148
+ # **
149
+ # )
150
+ # super
151
+ # end
152
+
153
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
154
+ end
155
+
156
+ class Route < OnebusawaySDK::BaseModel
157
+ # @!attribute id
158
+ #
159
+ # @return [String]
160
+ required :id, String
161
+
162
+ # @!attribute agency_id
163
+ #
164
+ # @return [String]
165
+ required :agency_id, String, api_name: :agencyId
166
+
167
+ # @!attribute type
168
+ #
169
+ # @return [Integer]
170
+ required :type, Integer
171
+
172
+ # @!attribute [r] color
173
+ #
174
+ # @return [String, nil]
175
+ optional :color, String
176
+
177
+ # @!parse
178
+ # # @return [String]
179
+ # attr_writer :color
180
+
181
+ # @!attribute [r] description
182
+ #
183
+ # @return [String, nil]
184
+ optional :description, String
185
+
186
+ # @!parse
187
+ # # @return [String]
188
+ # attr_writer :description
189
+
190
+ # @!attribute [r] long_name
191
+ #
192
+ # @return [String, nil]
193
+ optional :long_name, String, api_name: :longName
194
+
195
+ # @!parse
196
+ # # @return [String]
197
+ # attr_writer :long_name
198
+
199
+ # @!attribute [r] null_safe_short_name
200
+ #
201
+ # @return [String, nil]
202
+ optional :null_safe_short_name, String, api_name: :nullSafeShortName
203
+
204
+ # @!parse
205
+ # # @return [String]
206
+ # attr_writer :null_safe_short_name
207
+
208
+ # @!attribute [r] short_name
209
+ #
210
+ # @return [String, nil]
211
+ optional :short_name, String, api_name: :shortName
212
+
213
+ # @!parse
214
+ # # @return [String]
215
+ # attr_writer :short_name
216
+
217
+ # @!attribute [r] text_color
218
+ #
219
+ # @return [String, nil]
220
+ optional :text_color, String, api_name: :textColor
221
+
222
+ # @!parse
223
+ # # @return [String]
224
+ # attr_writer :text_color
225
+
226
+ # @!attribute [r] url
227
+ #
228
+ # @return [String, nil]
229
+ optional :url, String
230
+
231
+ # @!parse
232
+ # # @return [String]
233
+ # attr_writer :url
234
+
235
+ # @!parse
236
+ # # @param id [String]
237
+ # # @param agency_id [String]
238
+ # # @param type [Integer]
239
+ # # @param color [String]
240
+ # # @param description [String]
241
+ # # @param long_name [String]
242
+ # # @param null_safe_short_name [String]
243
+ # # @param short_name [String]
244
+ # # @param text_color [String]
245
+ # # @param url [String]
246
+ # #
247
+ # def initialize(
248
+ # id:,
249
+ # agency_id:,
250
+ # type:,
251
+ # color: nil,
252
+ # description: nil,
253
+ # long_name: nil,
254
+ # null_safe_short_name: nil,
255
+ # short_name: nil,
256
+ # text_color: nil,
257
+ # url: nil,
258
+ # **
259
+ # )
260
+ # super
261
+ # end
262
+
263
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
264
+ end
265
+
266
+ class Situation < OnebusawaySDK::BaseModel
267
+ # @!attribute id
268
+ # Unique identifier for the situation.
269
+ #
270
+ # @return [String]
271
+ required :id, String
272
+
273
+ # @!attribute creation_time
274
+ # Unix timestamp of when this situation was created.
275
+ #
276
+ # @return [Integer]
277
+ required :creation_time, Integer, api_name: :creationTime
278
+
279
+ # @!attribute [r] active_windows
280
+ #
281
+ # @return [Array<OnebusawaySDK::Models::References::Situation::ActiveWindow>, nil]
282
+ optional :active_windows,
283
+ -> { OnebusawaySDK::ArrayOf[OnebusawaySDK::Models::References::Situation::ActiveWindow] },
284
+ api_name: :activeWindows
285
+
286
+ # @!parse
287
+ # # @return [Array<OnebusawaySDK::Models::References::Situation::ActiveWindow>]
288
+ # attr_writer :active_windows
289
+
290
+ # @!attribute [r] all_affects
291
+ #
292
+ # @return [Array<OnebusawaySDK::Models::References::Situation::AllAffect>, nil]
293
+ optional :all_affects,
294
+ -> { OnebusawaySDK::ArrayOf[OnebusawaySDK::Models::References::Situation::AllAffect] },
295
+ api_name: :allAffects
296
+
297
+ # @!parse
298
+ # # @return [Array<OnebusawaySDK::Models::References::Situation::AllAffect>]
299
+ # attr_writer :all_affects
300
+
301
+ # @!attribute [r] consequence_message
302
+ # Message regarding the consequence of the situation.
303
+ #
304
+ # @return [String, nil]
305
+ optional :consequence_message, String, api_name: :consequenceMessage
306
+
307
+ # @!parse
308
+ # # @return [String]
309
+ # attr_writer :consequence_message
310
+
311
+ # @!attribute [r] consequences
312
+ #
313
+ # @return [Array<OnebusawaySDK::Models::References::Situation::Consequence>, nil]
314
+ optional :consequences,
315
+ -> { OnebusawaySDK::ArrayOf[OnebusawaySDK::Models::References::Situation::Consequence] }
316
+
317
+ # @!parse
318
+ # # @return [Array<OnebusawaySDK::Models::References::Situation::Consequence>]
319
+ # attr_writer :consequences
320
+
321
+ # @!attribute [r] description
322
+ #
323
+ # @return [OnebusawaySDK::Models::References::Situation::Description, nil]
324
+ optional :description, -> { OnebusawaySDK::Models::References::Situation::Description }
325
+
326
+ # @!parse
327
+ # # @return [OnebusawaySDK::Models::References::Situation::Description]
328
+ # attr_writer :description
329
+
330
+ # @!attribute [r] publication_windows
331
+ #
332
+ # @return [Array<OnebusawaySDK::Models::References::Situation::PublicationWindow>, nil]
333
+ optional :publication_windows,
334
+ -> { OnebusawaySDK::ArrayOf[OnebusawaySDK::Models::References::Situation::PublicationWindow] },
335
+ api_name: :publicationWindows
336
+
337
+ # @!parse
338
+ # # @return [Array<OnebusawaySDK::Models::References::Situation::PublicationWindow>]
339
+ # attr_writer :publication_windows
340
+
341
+ # @!attribute [r] reason
342
+ # Reason for the service alert, taken from TPEG codes.
343
+ #
344
+ # @return [Symbol, OnebusawaySDK::Models::References::Situation::Reason, nil]
345
+ optional :reason, enum: -> { OnebusawaySDK::Models::References::Situation::Reason }
346
+
347
+ # @!parse
348
+ # # @return [Symbol, OnebusawaySDK::Models::References::Situation::Reason]
349
+ # attr_writer :reason
350
+
351
+ # @!attribute [r] severity
352
+ # Severity of the situation.
353
+ #
354
+ # @return [String, nil]
355
+ optional :severity, String
356
+
357
+ # @!parse
358
+ # # @return [String]
359
+ # attr_writer :severity
360
+
361
+ # @!attribute [r] summary
362
+ #
363
+ # @return [OnebusawaySDK::Models::References::Situation::Summary, nil]
364
+ optional :summary, -> { OnebusawaySDK::Models::References::Situation::Summary }
365
+
366
+ # @!parse
367
+ # # @return [OnebusawaySDK::Models::References::Situation::Summary]
368
+ # attr_writer :summary
369
+
370
+ # @!attribute [r] url
371
+ #
372
+ # @return [OnebusawaySDK::Models::References::Situation::URL, nil]
373
+ optional :url, -> { OnebusawaySDK::Models::References::Situation::URL }
374
+
375
+ # @!parse
376
+ # # @return [OnebusawaySDK::Models::References::Situation::URL]
377
+ # attr_writer :url
378
+
379
+ # @!parse
380
+ # # @param id [String]
381
+ # # @param creation_time [Integer]
382
+ # # @param active_windows [Array<OnebusawaySDK::Models::References::Situation::ActiveWindow>]
383
+ # # @param all_affects [Array<OnebusawaySDK::Models::References::Situation::AllAffect>]
384
+ # # @param consequence_message [String]
385
+ # # @param consequences [Array<OnebusawaySDK::Models::References::Situation::Consequence>]
386
+ # # @param description [OnebusawaySDK::Models::References::Situation::Description]
387
+ # # @param publication_windows [Array<OnebusawaySDK::Models::References::Situation::PublicationWindow>]
388
+ # # @param reason [Symbol, OnebusawaySDK::Models::References::Situation::Reason]
389
+ # # @param severity [String]
390
+ # # @param summary [OnebusawaySDK::Models::References::Situation::Summary]
391
+ # # @param url [OnebusawaySDK::Models::References::Situation::URL]
392
+ # #
393
+ # def initialize(
394
+ # id:,
395
+ # creation_time:,
396
+ # active_windows: nil,
397
+ # all_affects: nil,
398
+ # consequence_message: nil,
399
+ # consequences: nil,
400
+ # description: nil,
401
+ # publication_windows: nil,
402
+ # reason: nil,
403
+ # severity: nil,
404
+ # summary: nil,
405
+ # url: nil,
406
+ # **
407
+ # )
408
+ # super
409
+ # end
410
+
411
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
412
+
413
+ class ActiveWindow < OnebusawaySDK::BaseModel
414
+ # @!attribute [r] from
415
+ # Start time of the active window as a Unix timestamp.
416
+ #
417
+ # @return [Integer, nil]
418
+ optional :from, Integer
419
+
420
+ # @!parse
421
+ # # @return [Integer]
422
+ # attr_writer :from
423
+
424
+ # @!attribute [r] to
425
+ # End time of the active window as a Unix timestamp.
426
+ #
427
+ # @return [Integer, nil]
428
+ optional :to, Integer
429
+
430
+ # @!parse
431
+ # # @return [Integer]
432
+ # attr_writer :to
433
+
434
+ # @!parse
435
+ # # @param from [Integer]
436
+ # # @param to [Integer]
437
+ # #
438
+ # def initialize(from: nil, to: nil, **) = super
439
+
440
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
441
+ end
442
+
443
+ class AllAffect < OnebusawaySDK::BaseModel
444
+ # @!attribute [r] agency_id
445
+ # Identifier for the agency.
446
+ #
447
+ # @return [String, nil]
448
+ optional :agency_id, String, api_name: :agencyId
449
+
450
+ # @!parse
451
+ # # @return [String]
452
+ # attr_writer :agency_id
453
+
454
+ # @!attribute [r] application_id
455
+ # Identifier for the application.
456
+ #
457
+ # @return [String, nil]
458
+ optional :application_id, String, api_name: :applicationId
459
+
460
+ # @!parse
461
+ # # @return [String]
462
+ # attr_writer :application_id
463
+
464
+ # @!attribute [r] direction_id
465
+ # Identifier for the direction.
466
+ #
467
+ # @return [String, nil]
468
+ optional :direction_id, String, api_name: :directionId
469
+
470
+ # @!parse
471
+ # # @return [String]
472
+ # attr_writer :direction_id
473
+
474
+ # @!attribute [r] route_id
475
+ # Identifier for the route.
476
+ #
477
+ # @return [String, nil]
478
+ optional :route_id, String, api_name: :routeId
479
+
480
+ # @!parse
481
+ # # @return [String]
482
+ # attr_writer :route_id
483
+
484
+ # @!attribute [r] stop_id
485
+ # Identifier for the stop.
486
+ #
487
+ # @return [String, nil]
488
+ optional :stop_id, String, api_name: :stopId
489
+
490
+ # @!parse
491
+ # # @return [String]
492
+ # attr_writer :stop_id
493
+
494
+ # @!attribute [r] trip_id
495
+ # Identifier for the trip.
496
+ #
497
+ # @return [String, nil]
498
+ optional :trip_id, String, api_name: :tripId
499
+
500
+ # @!parse
501
+ # # @return [String]
502
+ # attr_writer :trip_id
503
+
504
+ # @!parse
505
+ # # @param agency_id [String]
506
+ # # @param application_id [String]
507
+ # # @param direction_id [String]
508
+ # # @param route_id [String]
509
+ # # @param stop_id [String]
510
+ # # @param trip_id [String]
511
+ # #
512
+ # def initialize(agency_id: nil, application_id: nil, direction_id: nil, route_id: nil, stop_id: nil, trip_id: nil, **) = super
513
+
514
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
515
+ end
516
+
517
+ class Consequence < OnebusawaySDK::BaseModel
518
+ # @!attribute [r] condition
519
+ # Condition of the consequence.
520
+ #
521
+ # @return [String, nil]
522
+ optional :condition, String
523
+
524
+ # @!parse
525
+ # # @return [String]
526
+ # attr_writer :condition
527
+
528
+ # @!attribute [r] condition_details
529
+ #
530
+ # @return [OnebusawaySDK::Models::References::Situation::Consequence::ConditionDetails, nil]
531
+ optional :condition_details,
532
+ -> { OnebusawaySDK::Models::References::Situation::Consequence::ConditionDetails },
533
+ api_name: :conditionDetails
534
+
535
+ # @!parse
536
+ # # @return [OnebusawaySDK::Models::References::Situation::Consequence::ConditionDetails]
537
+ # attr_writer :condition_details
538
+
539
+ # @!parse
540
+ # # @param condition [String]
541
+ # # @param condition_details [OnebusawaySDK::Models::References::Situation::Consequence::ConditionDetails]
542
+ # #
543
+ # def initialize(condition: nil, condition_details: nil, **) = super
544
+
545
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
546
+
547
+ class ConditionDetails < OnebusawaySDK::BaseModel
548
+ # @!attribute [r] diversion_path
549
+ #
550
+ # @return [OnebusawaySDK::Models::References::Situation::Consequence::ConditionDetails::DiversionPath, nil]
551
+ optional :diversion_path,
552
+ -> { OnebusawaySDK::Models::References::Situation::Consequence::ConditionDetails::DiversionPath },
553
+ api_name: :diversionPath
554
+
555
+ # @!parse
556
+ # # @return [OnebusawaySDK::Models::References::Situation::Consequence::ConditionDetails::DiversionPath]
557
+ # attr_writer :diversion_path
558
+
559
+ # @!attribute [r] diversion_stop_ids
560
+ #
561
+ # @return [Array<String>, nil]
562
+ optional :diversion_stop_ids, OnebusawaySDK::ArrayOf[String], api_name: :diversionStopIds
563
+
564
+ # @!parse
565
+ # # @return [Array<String>]
566
+ # attr_writer :diversion_stop_ids
567
+
568
+ # @!parse
569
+ # # @param diversion_path [OnebusawaySDK::Models::References::Situation::Consequence::ConditionDetails::DiversionPath]
570
+ # # @param diversion_stop_ids [Array<String>]
571
+ # #
572
+ # def initialize(diversion_path: nil, diversion_stop_ids: nil, **) = super
573
+
574
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
575
+
576
+ class DiversionPath < OnebusawaySDK::BaseModel
577
+ # @!attribute [r] length
578
+ # Length of the diversion path.
579
+ #
580
+ # @return [Integer, nil]
581
+ optional :length, Integer
582
+
583
+ # @!parse
584
+ # # @return [Integer]
585
+ # attr_writer :length
586
+
587
+ # @!attribute [r] levels
588
+ # Levels of the diversion path.
589
+ #
590
+ # @return [String, nil]
591
+ optional :levels, String
592
+
593
+ # @!parse
594
+ # # @return [String]
595
+ # attr_writer :levels
596
+
597
+ # @!attribute [r] points
598
+ # Points of the diversion path.
599
+ #
600
+ # @return [String, nil]
601
+ optional :points, String
602
+
603
+ # @!parse
604
+ # # @return [String]
605
+ # attr_writer :points
606
+
607
+ # @!parse
608
+ # # @param length [Integer]
609
+ # # @param levels [String]
610
+ # # @param points [String]
611
+ # #
612
+ # def initialize(length: nil, levels: nil, points: nil, **) = super
613
+
614
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
615
+ end
616
+ end
617
+ end
618
+
619
+ class Description < OnebusawaySDK::BaseModel
620
+ # @!attribute [r] lang
621
+ # Language of the description.
622
+ #
623
+ # @return [String, nil]
624
+ optional :lang, String
625
+
626
+ # @!parse
627
+ # # @return [String]
628
+ # attr_writer :lang
629
+
630
+ # @!attribute [r] value
631
+ # Longer description of the situation.
632
+ #
633
+ # @return [String, nil]
634
+ optional :value, String
635
+
636
+ # @!parse
637
+ # # @return [String]
638
+ # attr_writer :value
639
+
640
+ # @!parse
641
+ # # @param lang [String]
642
+ # # @param value [String]
643
+ # #
644
+ # def initialize(lang: nil, value: nil, **) = super
645
+
646
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
647
+ end
648
+
649
+ class PublicationWindow < OnebusawaySDK::BaseModel
650
+ # @!attribute from
651
+ # Start time of the time window as a Unix timestamp.
652
+ #
653
+ # @return [Integer]
654
+ required :from, Integer
655
+
656
+ # @!attribute to
657
+ # End time of the time window as a Unix timestamp.
658
+ #
659
+ # @return [Integer]
660
+ required :to, Integer
661
+
662
+ # @!parse
663
+ # # @param from [Integer]
664
+ # # @param to [Integer]
665
+ # #
666
+ # def initialize(from:, to:, **) = super
667
+
668
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
669
+ end
670
+
671
+ # @abstract
672
+ #
673
+ # Reason for the service alert, taken from TPEG codes.
674
+ #
675
+ # @example
676
+ # ```ruby
677
+ # case reason
678
+ # in :equipmentReason
679
+ # # ...
680
+ # in :environmentReason
681
+ # # ...
682
+ # in :personnelReason
683
+ # # ...
684
+ # in :miscellaneousReason
685
+ # # ...
686
+ # in :securityAlert
687
+ # # ...
688
+ # end
689
+ # ```
690
+ class Reason < OnebusawaySDK::Enum
691
+ EQUIPMENT_REASON = :equipmentReason
692
+ ENVIRONMENT_REASON = :environmentReason
693
+ PERSONNEL_REASON = :personnelReason
694
+ MISCELLANEOUS_REASON = :miscellaneousReason
695
+ SECURITY_ALERT = :securityAlert
696
+
697
+ finalize!
698
+
699
+ # @!parse
700
+ # # @return [Array<Symbol>]
701
+ # #
702
+ # def self.values; end
703
+ end
704
+
705
+ class Summary < OnebusawaySDK::BaseModel
706
+ # @!attribute [r] lang
707
+ # Language of the summary.
708
+ #
709
+ # @return [String, nil]
710
+ optional :lang, String
711
+
712
+ # @!parse
713
+ # # @return [String]
714
+ # attr_writer :lang
715
+
716
+ # @!attribute [r] value
717
+ # Short summary of the situation.
718
+ #
719
+ # @return [String, nil]
720
+ optional :value, String
721
+
722
+ # @!parse
723
+ # # @return [String]
724
+ # attr_writer :value
725
+
726
+ # @!parse
727
+ # # @param lang [String]
728
+ # # @param value [String]
729
+ # #
730
+ # def initialize(lang: nil, value: nil, **) = super
731
+
732
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
733
+ end
734
+
735
+ class URL < OnebusawaySDK::BaseModel
736
+ # @!attribute [r] lang
737
+ # Language of the URL.
738
+ #
739
+ # @return [String, nil]
740
+ optional :lang, String
741
+
742
+ # @!parse
743
+ # # @return [String]
744
+ # attr_writer :lang
745
+
746
+ # @!attribute [r] value
747
+ # URL for more information about the situation.
748
+ #
749
+ # @return [String, nil]
750
+ optional :value, String
751
+
752
+ # @!parse
753
+ # # @return [String]
754
+ # attr_writer :value
755
+
756
+ # @!parse
757
+ # # @param lang [String]
758
+ # # @param value [String]
759
+ # #
760
+ # def initialize(lang: nil, value: nil, **) = super
761
+
762
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
763
+ end
764
+ end
765
+
766
+ class Stop < OnebusawaySDK::BaseModel
767
+ # @!attribute id
768
+ #
769
+ # @return [String]
770
+ required :id, String
771
+
772
+ # @!attribute lat
773
+ #
774
+ # @return [Float]
775
+ required :lat, Float
776
+
777
+ # @!attribute lon
778
+ #
779
+ # @return [Float]
780
+ required :lon, Float
781
+
782
+ # @!attribute name
783
+ #
784
+ # @return [String]
785
+ required :name, String
786
+
787
+ # @!attribute parent
788
+ #
789
+ # @return [String]
790
+ required :parent, String
791
+
792
+ # @!attribute route_ids
793
+ #
794
+ # @return [Array<String>]
795
+ required :route_ids, OnebusawaySDK::ArrayOf[String], api_name: :routeIds
796
+
797
+ # @!attribute static_route_ids
798
+ #
799
+ # @return [Array<String>]
800
+ required :static_route_ids, OnebusawaySDK::ArrayOf[String], api_name: :staticRouteIds
801
+
802
+ # @!attribute [r] code
803
+ #
804
+ # @return [String, nil]
805
+ optional :code, String
806
+
807
+ # @!parse
808
+ # # @return [String]
809
+ # attr_writer :code
810
+
811
+ # @!attribute [r] direction
812
+ #
813
+ # @return [String, nil]
814
+ optional :direction, String
815
+
816
+ # @!parse
817
+ # # @return [String]
818
+ # attr_writer :direction
819
+
820
+ # @!attribute [r] location_type
821
+ #
822
+ # @return [Integer, nil]
823
+ optional :location_type, Integer, api_name: :locationType
824
+
825
+ # @!parse
826
+ # # @return [Integer]
827
+ # attr_writer :location_type
828
+
829
+ # @!attribute [r] wheelchair_boarding
830
+ #
831
+ # @return [String, nil]
832
+ optional :wheelchair_boarding, String, api_name: :wheelchairBoarding
833
+
834
+ # @!parse
835
+ # # @return [String]
836
+ # attr_writer :wheelchair_boarding
837
+
838
+ # @!parse
839
+ # # @param id [String]
840
+ # # @param lat [Float]
841
+ # # @param lon [Float]
842
+ # # @param name [String]
843
+ # # @param parent [String]
844
+ # # @param route_ids [Array<String>]
845
+ # # @param static_route_ids [Array<String>]
846
+ # # @param code [String]
847
+ # # @param direction [String]
848
+ # # @param location_type [Integer]
849
+ # # @param wheelchair_boarding [String]
850
+ # #
851
+ # def initialize(
852
+ # id:,
853
+ # lat:,
854
+ # lon:,
855
+ # name:,
856
+ # parent:,
857
+ # route_ids:,
858
+ # static_route_ids:,
859
+ # code: nil,
860
+ # direction: nil,
861
+ # location_type: nil,
862
+ # wheelchair_boarding: nil,
863
+ # **
864
+ # )
865
+ # super
866
+ # end
867
+
868
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
869
+ end
870
+
871
+ class StopTime < OnebusawaySDK::BaseModel
872
+ # @!attribute [r] arrival_time
873
+ #
874
+ # @return [Integer, nil]
875
+ optional :arrival_time, Integer, api_name: :arrivalTime
876
+
877
+ # @!parse
878
+ # # @return [Integer]
879
+ # attr_writer :arrival_time
880
+
881
+ # @!attribute [r] departure_time
882
+ #
883
+ # @return [Integer, nil]
884
+ optional :departure_time, Integer, api_name: :departureTime
885
+
886
+ # @!parse
887
+ # # @return [Integer]
888
+ # attr_writer :departure_time
889
+
890
+ # @!attribute [r] distance_along_trip
891
+ #
892
+ # @return [Float, nil]
893
+ optional :distance_along_trip, Float, api_name: :distanceAlongTrip
894
+
895
+ # @!parse
896
+ # # @return [Float]
897
+ # attr_writer :distance_along_trip
898
+
899
+ # @!attribute [r] historical_occupancy
900
+ #
901
+ # @return [String, nil]
902
+ optional :historical_occupancy, String, api_name: :historicalOccupancy
903
+
904
+ # @!parse
905
+ # # @return [String]
906
+ # attr_writer :historical_occupancy
907
+
908
+ # @!attribute [r] stop_headsign
909
+ #
910
+ # @return [String, nil]
911
+ optional :stop_headsign, String, api_name: :stopHeadsign
912
+
913
+ # @!parse
914
+ # # @return [String]
915
+ # attr_writer :stop_headsign
916
+
917
+ # @!attribute [r] stop_id
918
+ #
919
+ # @return [String, nil]
920
+ optional :stop_id, String, api_name: :stopId
921
+
922
+ # @!parse
923
+ # # @return [String]
924
+ # attr_writer :stop_id
925
+
926
+ # @!parse
927
+ # # @param arrival_time [Integer]
928
+ # # @param departure_time [Integer]
929
+ # # @param distance_along_trip [Float]
930
+ # # @param historical_occupancy [String]
931
+ # # @param stop_headsign [String]
932
+ # # @param stop_id [String]
933
+ # #
934
+ # def initialize(
935
+ # arrival_time: nil,
936
+ # departure_time: nil,
937
+ # distance_along_trip: nil,
938
+ # historical_occupancy: nil,
939
+ # stop_headsign: nil,
940
+ # stop_id: nil,
941
+ # **
942
+ # )
943
+ # super
944
+ # end
945
+
946
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
947
+ end
948
+
949
+ class Trip < OnebusawaySDK::BaseModel
950
+ # @!attribute id
951
+ #
952
+ # @return [String]
953
+ required :id, String
954
+
955
+ # @!attribute route_id
956
+ #
957
+ # @return [String]
958
+ required :route_id, String, api_name: :routeId
959
+
960
+ # @!attribute service_id
961
+ #
962
+ # @return [String]
963
+ required :service_id, String, api_name: :serviceId
964
+
965
+ # @!attribute [r] block_id
966
+ #
967
+ # @return [String, nil]
968
+ optional :block_id, String, api_name: :blockId
969
+
970
+ # @!parse
971
+ # # @return [String]
972
+ # attr_writer :block_id
973
+
974
+ # @!attribute [r] direction_id
975
+ #
976
+ # @return [String, nil]
977
+ optional :direction_id, String, api_name: :directionId
978
+
979
+ # @!parse
980
+ # # @return [String]
981
+ # attr_writer :direction_id
982
+
983
+ # @!attribute [r] peak_offpeak
984
+ #
985
+ # @return [Integer, nil]
986
+ optional :peak_offpeak, Integer, api_name: :peakOffpeak
987
+
988
+ # @!parse
989
+ # # @return [Integer]
990
+ # attr_writer :peak_offpeak
991
+
992
+ # @!attribute [r] route_short_name
993
+ #
994
+ # @return [String, nil]
995
+ optional :route_short_name, String, api_name: :routeShortName
996
+
997
+ # @!parse
998
+ # # @return [String]
999
+ # attr_writer :route_short_name
1000
+
1001
+ # @!attribute [r] shape_id
1002
+ #
1003
+ # @return [String, nil]
1004
+ optional :shape_id, String, api_name: :shapeId
1005
+
1006
+ # @!parse
1007
+ # # @return [String]
1008
+ # attr_writer :shape_id
1009
+
1010
+ # @!attribute [r] time_zone
1011
+ #
1012
+ # @return [String, nil]
1013
+ optional :time_zone, String, api_name: :timeZone
1014
+
1015
+ # @!parse
1016
+ # # @return [String]
1017
+ # attr_writer :time_zone
1018
+
1019
+ # @!attribute [r] trip_headsign
1020
+ #
1021
+ # @return [String, nil]
1022
+ optional :trip_headsign, String, api_name: :tripHeadsign
1023
+
1024
+ # @!parse
1025
+ # # @return [String]
1026
+ # attr_writer :trip_headsign
1027
+
1028
+ # @!attribute [r] trip_short_name
1029
+ #
1030
+ # @return [String, nil]
1031
+ optional :trip_short_name, String, api_name: :tripShortName
1032
+
1033
+ # @!parse
1034
+ # # @return [String]
1035
+ # attr_writer :trip_short_name
1036
+
1037
+ # @!parse
1038
+ # # @param id [String]
1039
+ # # @param route_id [String]
1040
+ # # @param service_id [String]
1041
+ # # @param block_id [String]
1042
+ # # @param direction_id [String]
1043
+ # # @param peak_offpeak [Integer]
1044
+ # # @param route_short_name [String]
1045
+ # # @param shape_id [String]
1046
+ # # @param time_zone [String]
1047
+ # # @param trip_headsign [String]
1048
+ # # @param trip_short_name [String]
1049
+ # #
1050
+ # def initialize(
1051
+ # id:,
1052
+ # route_id:,
1053
+ # service_id:,
1054
+ # block_id: nil,
1055
+ # direction_id: nil,
1056
+ # peak_offpeak: nil,
1057
+ # route_short_name: nil,
1058
+ # shape_id: nil,
1059
+ # time_zone: nil,
1060
+ # trip_headsign: nil,
1061
+ # trip_short_name: nil,
1062
+ # **
1063
+ # )
1064
+ # super
1065
+ # end
1066
+
1067
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
1068
+ end
1069
+ end
1070
+ end
1071
+ end