onebusaway-sdk 1.8.0 → 1.9.0

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 (29) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb +12 -12
  5. data/lib/onebusaway_sdk/models/arrival_and_departure_retrieve_response.rb +12 -12
  6. data/lib/onebusaway_sdk/models/arrivals_and_departures_for_location_list_response.rb +12 -12
  7. data/lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb +6 -4
  8. data/lib/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rb +6 -4
  9. data/lib/onebusaway_sdk/models/trips_for_location_list_response.rb +7 -5
  10. data/lib/onebusaway_sdk/models/trips_for_route_list_response.rb +7 -5
  11. data/lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb +2 -2
  12. data/lib/onebusaway_sdk/version.rb +1 -1
  13. data/rbi/onebusaway_sdk/models/arrival_and_departure_list_response.rbi +18 -36
  14. data/rbi/onebusaway_sdk/models/arrival_and_departure_retrieve_response.rbi +18 -36
  15. data/rbi/onebusaway_sdk/models/arrivals_and_departures_for_location_list_response.rbi +18 -36
  16. data/rbi/onebusaway_sdk/models/trip_detail_retrieve_response.rbi +12 -9
  17. data/rbi/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rbi +12 -9
  18. data/rbi/onebusaway_sdk/models/trips_for_location_list_response.rbi +15 -10
  19. data/rbi/onebusaway_sdk/models/trips_for_route_list_response.rbi +15 -10
  20. data/rbi/onebusaway_sdk/models/vehicles_for_agency_list_response.rbi +3 -6
  21. data/sig/onebusaway_sdk/models/arrival_and_departure_list_response.rbs +24 -36
  22. data/sig/onebusaway_sdk/models/arrival_and_departure_retrieve_response.rbs +24 -36
  23. data/sig/onebusaway_sdk/models/arrivals_and_departures_for_location_list_response.rbs +24 -36
  24. data/sig/onebusaway_sdk/models/trip_detail_retrieve_response.rbs +8 -14
  25. data/sig/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rbs +8 -14
  26. data/sig/onebusaway_sdk/models/trips_for_location_list_response.rbs +8 -10
  27. data/sig/onebusaway_sdk/models/trips_for_route_list_response.rbs +8 -10
  28. data/sig/onebusaway_sdk/models/vehicles_for_agency_list_response.rbs +4 -6
  29. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d44c6d62dd11c432c23628174eaca7e59703f78c9e15c6dcf45f23fa2c8f9e6f
4
- data.tar.gz: 43644644c6c66a2d36029eb6cb4756a8e9f91b80de73d6667d75ce4bb1d40ea9
3
+ metadata.gz: 3cde8149759872b1be572e13efee4030c38d4b4d0b9f0d5c919c10e0903e57f7
4
+ data.tar.gz: 79400d6bdebf26db230633d94e2ef262eaa38875f30d3ad040268c23f15182da
5
5
  SHA512:
6
- metadata.gz: 025a51b335e6d32f3a6a250d76dd48dfd90b1625174f1a71e364352af91b07ea6992da7cac940e53fa23c3b0edab258354637bb0f94869aa57aaaa16dfc4f207
7
- data.tar.gz: 7d51a5181fe99ac9922bb8b87a92fc824facc093eeae7a3cd2e3233320b2dc3861f971c3b791085af75b076082d0a95cf669710de99f0f37487b26a852722e7f
6
+ metadata.gz: c071714483c2a9dd71355bacca8da7b2ce4f8955fb7940243defeb87ae60919928a0caa197b05dd67d5cb5a8e026fafc89adea295426ef40883ab5c4a02c806c
7
+ data.tar.gz: fb3dffde0ad67444fd7eb11fc93ee61348e0276b4615c35e67947be6c55d8971d724690d5f29fa8c70e9512aa48e87b7871fd67af063b00b7b120d43bc531ad9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.9.0 (2026-06-01)
4
+
5
+ Full Changelog: [v1.8.0...v1.9.0](https://github.com/OneBusAway/ruby-sdk/compare/v1.8.0...v1.9.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([2e35daf](https://github.com/OneBusAway/ruby-sdk/commit/2e35daf2cb318e35f1506f31487797b630995242))
10
+
3
11
  ## 1.8.0 (2026-05-20)
4
12
 
5
13
  Full Changelog: [v1.7.1...v1.8.0](https://github.com/OneBusAway/ruby-sdk/compare/v1.7.1...v1.8.0)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "onebusaway-sdk", "~> 1.8.0"
20
+ gem "onebusaway-sdk", "~> 1.9.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -158,7 +158,7 @@ module OnebusawaySDK
158
158
  # Information about frequency-based scheduling, if applicable to the trip.
159
159
  #
160
160
  # @return [String, nil]
161
- optional :frequency, String
161
+ optional :frequency, String, nil?: true
162
162
 
163
163
  # @!attribute historical_occupancy
164
164
  # Historical occupancy information of the transit vehicle.
@@ -188,13 +188,13 @@ module OnebusawaySDK
188
188
  # Interval for predicted arrival time, if available.
189
189
  #
190
190
  # @return [String, nil]
191
- optional :predicted_arrival_interval, String, api_name: :predictedArrivalInterval
191
+ optional :predicted_arrival_interval, String, api_name: :predictedArrivalInterval, nil?: true
192
192
 
193
193
  # @!attribute predicted_departure_interval
194
194
  # Interval for predicted departure time, if available.
195
195
  #
196
196
  # @return [String, nil]
197
- optional :predicted_departure_interval, String, api_name: :predictedDepartureInterval
197
+ optional :predicted_departure_interval, String, api_name: :predictedDepartureInterval, nil?: true
198
198
 
199
199
  # @!attribute predicted_occupancy
200
200
  # Predicted occupancy status of the transit vehicle.
@@ -220,13 +220,13 @@ module OnebusawaySDK
220
220
  # Interval for scheduled arrival time.
221
221
  #
222
222
  # @return [String, nil]
223
- optional :scheduled_arrival_interval, String, api_name: :scheduledArrivalInterval
223
+ optional :scheduled_arrival_interval, String, api_name: :scheduledArrivalInterval, nil?: true
224
224
 
225
225
  # @!attribute scheduled_departure_interval
226
226
  # Interval for scheduled departure time.
227
227
  #
228
228
  # @return [String, nil]
229
- optional :scheduled_departure_interval, String, api_name: :scheduledDepartureInterval
229
+ optional :scheduled_departure_interval, String, api_name: :scheduledDepartureInterval, nil?: true
230
230
 
231
231
  # @!attribute scheduled_track
232
232
  # Scheduled track information of the arriving transit vehicle.
@@ -295,7 +295,7 @@ module OnebusawaySDK
295
295
  #
296
296
  # @param distance_from_stop [Float] Distance of the arriving transit vehicle from the stop, in meters.
297
297
  #
298
- # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip.
298
+ # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip.
299
299
  #
300
300
  # @param historical_occupancy [String] Historical occupancy information of the transit vehicle.
301
301
  #
@@ -305,9 +305,9 @@ module OnebusawaySDK
305
305
  #
306
306
  # @param predicted [Boolean] Indicates if real-time arrival info is available for this trip.
307
307
  #
308
- # @param predicted_arrival_interval [String] Interval for predicted arrival time, if available.
308
+ # @param predicted_arrival_interval [String, nil] Interval for predicted arrival time, if available.
309
309
  #
310
- # @param predicted_departure_interval [String] Interval for predicted departure time, if available.
310
+ # @param predicted_departure_interval [String, nil] Interval for predicted departure time, if available.
311
311
  #
312
312
  # @param predicted_occupancy [String] Predicted occupancy status of the transit vehicle.
313
313
  #
@@ -315,9 +315,9 @@ module OnebusawaySDK
315
315
  #
316
316
  # @param route_short_name [String] Optional route short name that potentially overrides the route short name in the
317
317
  #
318
- # @param scheduled_arrival_interval [String] Interval for scheduled arrival time.
318
+ # @param scheduled_arrival_interval [String, nil] Interval for scheduled arrival time.
319
319
  #
320
- # @param scheduled_departure_interval [String] Interval for scheduled departure time.
320
+ # @param scheduled_departure_interval [String, nil] Interval for scheduled departure time.
321
321
  #
322
322
  # @param scheduled_track [String] Scheduled track information of the arriving transit vehicle.
323
323
  #
@@ -438,7 +438,7 @@ module OnebusawaySDK
438
438
  # Information about frequency-based scheduling, if applicable to the trip.
439
439
  #
440
440
  # @return [String, nil]
441
- optional :frequency, String
441
+ optional :frequency, String, nil?: true
442
442
 
443
443
  # @!attribute last_known_location
444
444
  # Last known location of the transit vehicle (optional).
@@ -541,7 +541,7 @@ module OnebusawaySDK
541
541
  #
542
542
  # @param closest_stop_time_offset [Integer] Time offset from the closest stop to the current position of the transit vehicle
543
543
  #
544
- # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip.
544
+ # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip.
545
545
  #
546
546
  # @param last_known_location [OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation, nil] Last known location of the transit vehicle (optional).
547
547
  #
@@ -147,7 +147,7 @@ module OnebusawaySDK
147
147
  # Information about frequency-based scheduling, if applicable to the trip.
148
148
  #
149
149
  # @return [String, nil]
150
- optional :frequency, String
150
+ optional :frequency, String, nil?: true
151
151
 
152
152
  # @!attribute historical_occupancy
153
153
  # Historical occupancy information of the transit vehicle.
@@ -177,13 +177,13 @@ module OnebusawaySDK
177
177
  # Interval for predicted arrival time, if available.
178
178
  #
179
179
  # @return [String, nil]
180
- optional :predicted_arrival_interval, String, api_name: :predictedArrivalInterval
180
+ optional :predicted_arrival_interval, String, api_name: :predictedArrivalInterval, nil?: true
181
181
 
182
182
  # @!attribute predicted_departure_interval
183
183
  # Interval for predicted departure time, if available.
184
184
  #
185
185
  # @return [String, nil]
186
- optional :predicted_departure_interval, String, api_name: :predictedDepartureInterval
186
+ optional :predicted_departure_interval, String, api_name: :predictedDepartureInterval, nil?: true
187
187
 
188
188
  # @!attribute predicted_occupancy
189
189
  # Predicted occupancy status of the transit vehicle.
@@ -209,13 +209,13 @@ module OnebusawaySDK
209
209
  # Interval for scheduled arrival time.
210
210
  #
211
211
  # @return [String, nil]
212
- optional :scheduled_arrival_interval, String, api_name: :scheduledArrivalInterval
212
+ optional :scheduled_arrival_interval, String, api_name: :scheduledArrivalInterval, nil?: true
213
213
 
214
214
  # @!attribute scheduled_departure_interval
215
215
  # Interval for scheduled departure time.
216
216
  #
217
217
  # @return [String, nil]
218
- optional :scheduled_departure_interval, String, api_name: :scheduledDepartureInterval
218
+ optional :scheduled_departure_interval, String, api_name: :scheduledDepartureInterval, nil?: true
219
219
 
220
220
  # @!attribute scheduled_track
221
221
  # Scheduled track information of the arriving transit vehicle.
@@ -284,7 +284,7 @@ module OnebusawaySDK
284
284
  #
285
285
  # @param distance_from_stop [Float] Distance of the arriving transit vehicle from the stop, in meters.
286
286
  #
287
- # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip.
287
+ # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip.
288
288
  #
289
289
  # @param historical_occupancy [String] Historical occupancy information of the transit vehicle.
290
290
  #
@@ -294,9 +294,9 @@ module OnebusawaySDK
294
294
  #
295
295
  # @param predicted [Boolean] Indicates if real-time arrival info is available for this trip.
296
296
  #
297
- # @param predicted_arrival_interval [String] Interval for predicted arrival time, if available.
297
+ # @param predicted_arrival_interval [String, nil] Interval for predicted arrival time, if available.
298
298
  #
299
- # @param predicted_departure_interval [String] Interval for predicted departure time, if available.
299
+ # @param predicted_departure_interval [String, nil] Interval for predicted departure time, if available.
300
300
  #
301
301
  # @param predicted_occupancy [String] Predicted occupancy status of the transit vehicle.
302
302
  #
@@ -304,9 +304,9 @@ module OnebusawaySDK
304
304
  #
305
305
  # @param route_short_name [String] Optional route short name that potentially overrides the route short name in the
306
306
  #
307
- # @param scheduled_arrival_interval [String] Interval for scheduled arrival time.
307
+ # @param scheduled_arrival_interval [String, nil] Interval for scheduled arrival time.
308
308
  #
309
- # @param scheduled_departure_interval [String] Interval for scheduled departure time.
309
+ # @param scheduled_departure_interval [String, nil] Interval for scheduled departure time.
310
310
  #
311
311
  # @param scheduled_track [String] Scheduled track information of the arriving transit vehicle.
312
312
  #
@@ -427,7 +427,7 @@ module OnebusawaySDK
427
427
  # Information about frequency-based scheduling, if applicable to the trip.
428
428
  #
429
429
  # @return [String, nil]
430
- optional :frequency, String
430
+ optional :frequency, String, nil?: true
431
431
 
432
432
  # @!attribute last_known_location
433
433
  # Last known location of the transit vehicle (optional).
@@ -530,7 +530,7 @@ module OnebusawaySDK
530
530
  #
531
531
  # @param closest_stop_time_offset [Integer] Time offset from the closest stop to the current position of the transit vehicle
532
532
  #
533
- # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip.
533
+ # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip.
534
534
  #
535
535
  # @param last_known_location [OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus::LastKnownLocation, nil] Last known location of the transit vehicle (optional).
536
536
  #
@@ -184,7 +184,7 @@ module OnebusawaySDK
184
184
  # Information about frequency-based scheduling, if applicable to the trip.
185
185
  #
186
186
  # @return [String, nil]
187
- optional :frequency, String
187
+ optional :frequency, String, nil?: true
188
188
 
189
189
  # @!attribute historical_occupancy
190
190
  # Historical occupancy information of the transit vehicle.
@@ -214,13 +214,13 @@ module OnebusawaySDK
214
214
  # Interval for predicted arrival time, if available.
215
215
  #
216
216
  # @return [String, nil]
217
- optional :predicted_arrival_interval, String, api_name: :predictedArrivalInterval
217
+ optional :predicted_arrival_interval, String, api_name: :predictedArrivalInterval, nil?: true
218
218
 
219
219
  # @!attribute predicted_departure_interval
220
220
  # Interval for predicted departure time, if available.
221
221
  #
222
222
  # @return [String, nil]
223
- optional :predicted_departure_interval, String, api_name: :predictedDepartureInterval
223
+ optional :predicted_departure_interval, String, api_name: :predictedDepartureInterval, nil?: true
224
224
 
225
225
  # @!attribute predicted_occupancy
226
226
  # Predicted occupancy status of the transit vehicle.
@@ -246,13 +246,13 @@ module OnebusawaySDK
246
246
  # Interval for scheduled arrival time.
247
247
  #
248
248
  # @return [String, nil]
249
- optional :scheduled_arrival_interval, String, api_name: :scheduledArrivalInterval
249
+ optional :scheduled_arrival_interval, String, api_name: :scheduledArrivalInterval, nil?: true
250
250
 
251
251
  # @!attribute scheduled_departure_interval
252
252
  # Interval for scheduled departure time.
253
253
  #
254
254
  # @return [String, nil]
255
- optional :scheduled_departure_interval, String, api_name: :scheduledDepartureInterval
255
+ optional :scheduled_departure_interval, String, api_name: :scheduledDepartureInterval, nil?: true
256
256
 
257
257
  # @!attribute scheduled_track
258
258
  # Scheduled track information of the arriving transit vehicle.
@@ -321,7 +321,7 @@ module OnebusawaySDK
321
321
  #
322
322
  # @param distance_from_stop [Float] Distance of the arriving transit vehicle from the stop, in meters.
323
323
  #
324
- # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip.
324
+ # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip.
325
325
  #
326
326
  # @param historical_occupancy [String] Historical occupancy information of the transit vehicle.
327
327
  #
@@ -331,9 +331,9 @@ module OnebusawaySDK
331
331
  #
332
332
  # @param predicted [Boolean] Indicates if real-time arrival info is available for this trip.
333
333
  #
334
- # @param predicted_arrival_interval [String] Interval for predicted arrival time, if available.
334
+ # @param predicted_arrival_interval [String, nil] Interval for predicted arrival time, if available.
335
335
  #
336
- # @param predicted_departure_interval [String] Interval for predicted departure time, if available.
336
+ # @param predicted_departure_interval [String, nil] Interval for predicted departure time, if available.
337
337
  #
338
338
  # @param predicted_occupancy [String] Predicted occupancy status of the transit vehicle.
339
339
  #
@@ -341,9 +341,9 @@ module OnebusawaySDK
341
341
  #
342
342
  # @param route_short_name [String] Optional route short name that potentially overrides the route short name in the
343
343
  #
344
- # @param scheduled_arrival_interval [String] Interval for scheduled arrival time.
344
+ # @param scheduled_arrival_interval [String, nil] Interval for scheduled arrival time.
345
345
  #
346
- # @param scheduled_departure_interval [String] Interval for scheduled departure time.
346
+ # @param scheduled_departure_interval [String, nil] Interval for scheduled departure time.
347
347
  #
348
348
  # @param scheduled_track [String] Scheduled track information of the arriving transit vehicle.
349
349
  #
@@ -464,7 +464,7 @@ module OnebusawaySDK
464
464
  # Information about frequency-based scheduling, if applicable to the trip.
465
465
  #
466
466
  # @return [String, nil]
467
- optional :frequency, String
467
+ optional :frequency, String, nil?: true
468
468
 
469
469
  # @!attribute last_known_location
470
470
  # Last known location of the transit vehicle (optional).
@@ -567,7 +567,7 @@ module OnebusawaySDK
567
567
  #
568
568
  # @param closest_stop_time_offset [Integer] Time offset from the closest stop to the current position of the transit vehicle
569
569
  #
570
- # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip.
570
+ # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip.
571
571
  #
572
572
  # @param last_known_location [OnebusawaySDK::Models::ArrivalsAndDeparturesForLocationListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation, nil] Last known location of the transit vehicle (optional).
573
573
  #
@@ -42,7 +42,9 @@ module OnebusawaySDK
42
42
  # @!attribute schedule
43
43
  #
44
44
  # @return [OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule, nil]
45
- optional :schedule, -> { OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule }
45
+ optional :schedule,
46
+ -> { OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule },
47
+ nil?: true
46
48
 
47
49
  # @!attribute service_date
48
50
  #
@@ -65,7 +67,7 @@ module OnebusawaySDK
65
67
  #
66
68
  # @param frequency [String, nil]
67
69
  #
68
- # @param schedule [OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule]
70
+ # @param schedule [OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule, nil]
69
71
  #
70
72
  # @param service_date [Integer]
71
73
  #
@@ -261,7 +263,7 @@ module OnebusawaySDK
261
263
  # Information about frequency-based scheduling, if applicable to the trip.
262
264
  #
263
265
  # @return [String, nil]
264
- optional :frequency, String
266
+ optional :frequency, String, nil?: true
265
267
 
266
268
  # @!attribute last_known_location
267
269
  # Last known location of the transit vehicle (optional).
@@ -364,7 +366,7 @@ module OnebusawaySDK
364
366
  #
365
367
  # @param closest_stop_time_offset [Integer] Time offset from the closest stop to the current position of the transit vehicle
366
368
  #
367
- # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip.
369
+ # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip.
368
370
  #
369
371
  # @param last_known_location [OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Status::LastKnownLocation, nil] Last known location of the transit vehicle (optional).
370
372
  #
@@ -42,7 +42,9 @@ module OnebusawaySDK
42
42
  # @!attribute schedule
43
43
  #
44
44
  # @return [OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule, nil]
45
- optional :schedule, -> { OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule }
45
+ optional :schedule,
46
+ -> { OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule },
47
+ nil?: true
46
48
 
47
49
  # @!attribute service_date
48
50
  #
@@ -65,7 +67,7 @@ module OnebusawaySDK
65
67
  #
66
68
  # @param frequency [String, nil]
67
69
  #
68
- # @param schedule [OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule]
70
+ # @param schedule [OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule, nil]
69
71
  #
70
72
  # @param service_date [Integer]
71
73
  #
@@ -261,7 +263,7 @@ module OnebusawaySDK
261
263
  # Information about frequency-based scheduling, if applicable to the trip.
262
264
  #
263
265
  # @return [String, nil]
264
- optional :frequency, String
266
+ optional :frequency, String, nil?: true
265
267
 
266
268
  # @!attribute last_known_location
267
269
  # Last known location of the transit vehicle (optional).
@@ -364,7 +366,7 @@ module OnebusawaySDK
364
366
  #
365
367
  # @param closest_stop_time_offset [Integer] Time offset from the closest stop to the current position of the transit vehicle
366
368
  #
367
- # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip.
369
+ # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip.
368
370
  #
369
371
  # @param last_known_location [OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Status::LastKnownLocation, nil] Last known location of the transit vehicle (optional).
370
372
  #
@@ -48,8 +48,10 @@ module OnebusawaySDK
48
48
  class List < OnebusawaySDK::Internal::Type::BaseModel
49
49
  # @!attribute schedule
50
50
  #
51
- # @return [OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule]
52
- required :schedule, -> { OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule }
51
+ # @return [OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule, nil]
52
+ required :schedule,
53
+ -> { OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule },
54
+ nil?: true
53
55
 
54
56
  # @!attribute status
55
57
  # Trip-specific status for the arriving transit vehicle.
@@ -78,7 +80,7 @@ module OnebusawaySDK
78
80
  optional :situation_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :situationIds
79
81
 
80
82
  # @!method initialize(schedule:, status:, trip_id:, frequency: nil, service_date: nil, situation_ids: nil)
81
- # @param schedule [OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule]
83
+ # @param schedule [OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule, nil]
82
84
  #
83
85
  # @param status [OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Status] Trip-specific status for the arriving transit vehicle.
84
86
  #
@@ -278,7 +280,7 @@ module OnebusawaySDK
278
280
  # Information about frequency-based scheduling, if applicable to the trip.
279
281
  #
280
282
  # @return [String, nil]
281
- optional :frequency, String
283
+ optional :frequency, String, nil?: true
282
284
 
283
285
  # @!attribute last_known_location
284
286
  # Last known location of the transit vehicle (optional).
@@ -381,7 +383,7 @@ module OnebusawaySDK
381
383
  #
382
384
  # @param closest_stop_time_offset [Integer] Time offset from the closest stop to the current position of the transit vehicle
383
385
  #
384
- # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip.
386
+ # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip.
385
387
  #
386
388
  # @param last_known_location [OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Status::LastKnownLocation, nil] Last known location of the transit vehicle (optional).
387
389
  #
@@ -37,8 +37,10 @@ module OnebusawaySDK
37
37
  class List < OnebusawaySDK::Internal::Type::BaseModel
38
38
  # @!attribute schedule
39
39
  #
40
- # @return [OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule]
41
- required :schedule, -> { OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule }
40
+ # @return [OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule, nil]
41
+ required :schedule,
42
+ -> { OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule },
43
+ nil?: true
42
44
 
43
45
  # @!attribute status
44
46
  # Trip-specific status for the arriving transit vehicle.
@@ -67,7 +69,7 @@ module OnebusawaySDK
67
69
  optional :situation_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :situationIds
68
70
 
69
71
  # @!method initialize(schedule:, status:, trip_id:, frequency: nil, service_date: nil, situation_ids: nil)
70
- # @param schedule [OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule]
72
+ # @param schedule [OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule, nil]
71
73
  #
72
74
  # @param status [OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Status] Trip-specific status for the arriving transit vehicle.
73
75
  #
@@ -267,7 +269,7 @@ module OnebusawaySDK
267
269
  # Information about frequency-based scheduling, if applicable to the trip.
268
270
  #
269
271
  # @return [String, nil]
270
- optional :frequency, String
272
+ optional :frequency, String, nil?: true
271
273
 
272
274
  # @!attribute last_known_location
273
275
  # Last known location of the transit vehicle (optional).
@@ -369,7 +371,7 @@ module OnebusawaySDK
369
371
  #
370
372
  # @param closest_stop_time_offset [Integer] Time offset from the closest stop to the current position of the transit vehicle
371
373
  #
372
- # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip.
374
+ # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip.
373
375
  #
374
376
  # @param last_known_location [OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Status::LastKnownLocation, nil] Last known location of the transit vehicle (optional).
375
377
  #
@@ -244,7 +244,7 @@ module OnebusawaySDK
244
244
  # Information about frequency-based scheduling, if applicable to the trip.
245
245
  #
246
246
  # @return [String, nil]
247
- optional :frequency, String
247
+ optional :frequency, String, nil?: true
248
248
 
249
249
  # @!attribute last_known_location
250
250
  # Last known location of the transit vehicle (optional).
@@ -347,7 +347,7 @@ module OnebusawaySDK
347
347
  #
348
348
  # @param closest_stop_time_offset [Integer] Time offset from the closest stop to the current position of the transit vehicle
349
349
  #
350
- # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip.
350
+ # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip.
351
351
  #
352
352
  # @param last_known_location [OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus::LastKnownLocation, nil] Last known location of the transit vehicle (optional).
353
353
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OnebusawaySDK
4
- VERSION = "1.8.0"
4
+ VERSION = "1.9.0"
5
5
  end
@@ -230,10 +230,7 @@ module OnebusawaySDK
230
230
 
231
231
  # Information about frequency-based scheduling, if applicable to the trip.
232
232
  sig { returns(T.nilable(String)) }
233
- attr_reader :frequency
234
-
235
- sig { params(frequency: String).void }
236
- attr_writer :frequency
233
+ attr_accessor :frequency
237
234
 
238
235
  # Historical occupancy information of the transit vehicle.
239
236
  sig { returns(T.nilable(String)) }
@@ -265,17 +262,11 @@ module OnebusawaySDK
265
262
 
266
263
  # Interval for predicted arrival time, if available.
267
264
  sig { returns(T.nilable(String)) }
268
- attr_reader :predicted_arrival_interval
269
-
270
- sig { params(predicted_arrival_interval: String).void }
271
- attr_writer :predicted_arrival_interval
265
+ attr_accessor :predicted_arrival_interval
272
266
 
273
267
  # Interval for predicted departure time, if available.
274
268
  sig { returns(T.nilable(String)) }
275
- attr_reader :predicted_departure_interval
276
-
277
- sig { params(predicted_departure_interval: String).void }
278
- attr_writer :predicted_departure_interval
269
+ attr_accessor :predicted_departure_interval
279
270
 
280
271
  # Predicted occupancy status of the transit vehicle.
281
272
  sig { returns(T.nilable(String)) }
@@ -302,17 +293,11 @@ module OnebusawaySDK
302
293
 
303
294
  # Interval for scheduled arrival time.
304
295
  sig { returns(T.nilable(String)) }
305
- attr_reader :scheduled_arrival_interval
306
-
307
- sig { params(scheduled_arrival_interval: String).void }
308
- attr_writer :scheduled_arrival_interval
296
+ attr_accessor :scheduled_arrival_interval
309
297
 
310
298
  # Interval for scheduled departure time.
311
299
  sig { returns(T.nilable(String)) }
312
- attr_reader :scheduled_departure_interval
313
-
314
- sig { params(scheduled_departure_interval: String).void }
315
- attr_writer :scheduled_departure_interval
300
+ attr_accessor :scheduled_departure_interval
316
301
 
317
302
  # Scheduled track information of the arriving transit vehicle.
318
303
  sig { returns(T.nilable(String)) }
@@ -373,18 +358,18 @@ module OnebusawaySDK
373
358
  vehicle_id: String,
374
359
  actual_track: String,
375
360
  distance_from_stop: Float,
376
- frequency: String,
361
+ frequency: T.nilable(String),
377
362
  historical_occupancy: String,
378
363
  last_update_time: Integer,
379
364
  occupancy_status: String,
380
365
  predicted: T::Boolean,
381
- predicted_arrival_interval: String,
382
- predicted_departure_interval: String,
366
+ predicted_arrival_interval: T.nilable(String),
367
+ predicted_departure_interval: T.nilable(String),
383
368
  predicted_occupancy: String,
384
369
  route_long_name: String,
385
370
  route_short_name: String,
386
- scheduled_arrival_interval: String,
387
- scheduled_departure_interval: String,
371
+ scheduled_arrival_interval: T.nilable(String),
372
+ scheduled_departure_interval: T.nilable(String),
388
373
  scheduled_track: String,
389
374
  situation_ids: T::Array[String],
390
375
  status: String,
@@ -493,18 +478,18 @@ module OnebusawaySDK
493
478
  vehicle_id: String,
494
479
  actual_track: String,
495
480
  distance_from_stop: Float,
496
- frequency: String,
481
+ frequency: T.nilable(String),
497
482
  historical_occupancy: String,
498
483
  last_update_time: Integer,
499
484
  occupancy_status: String,
500
485
  predicted: T::Boolean,
501
- predicted_arrival_interval: String,
502
- predicted_departure_interval: String,
486
+ predicted_arrival_interval: T.nilable(String),
487
+ predicted_departure_interval: T.nilable(String),
503
488
  predicted_occupancy: String,
504
489
  route_long_name: String,
505
490
  route_short_name: String,
506
- scheduled_arrival_interval: String,
507
- scheduled_departure_interval: String,
491
+ scheduled_arrival_interval: T.nilable(String),
492
+ scheduled_departure_interval: T.nilable(String),
508
493
  scheduled_track: String,
509
494
  situation_ids: T::Array[String],
510
495
  status: String,
@@ -601,10 +586,7 @@ module OnebusawaySDK
601
586
 
602
587
  # Information about frequency-based scheduling, if applicable to the trip.
603
588
  sig { returns(T.nilable(String)) }
604
- attr_reader :frequency
605
-
606
- sig { params(frequency: String).void }
607
- attr_writer :frequency
589
+ attr_accessor :frequency
608
590
 
609
591
  # Last known location of the transit vehicle (optional).
610
592
  sig do
@@ -715,7 +697,7 @@ module OnebusawaySDK
715
697
  status: String,
716
698
  total_distance_along_trip: Float,
717
699
  closest_stop_time_offset: Integer,
718
- frequency: String,
700
+ frequency: T.nilable(String),
719
701
  last_known_location:
720
702
  T.nilable(
721
703
  OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation::OrHash
@@ -814,7 +796,7 @@ module OnebusawaySDK
814
796
  status: String,
815
797
  total_distance_along_trip: Float,
816
798
  closest_stop_time_offset: Integer,
817
- frequency: String,
799
+ frequency: T.nilable(String),
818
800
  last_known_location:
819
801
  T.nilable(
820
802
  OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation