onebusaway-sdk 1.0.2 → 1.0.3
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 +4 -4
- data/CHANGELOG.md +20 -0
- data/README.md +4 -4
- data/SECURITY.md +2 -2
- data/lib/onebusaway_sdk/internal/type/array_of.rb +8 -0
- data/lib/onebusaway_sdk/internal/type/base_model.rb +7 -0
- data/lib/onebusaway_sdk/internal/type/boolean.rb +8 -0
- data/lib/onebusaway_sdk/internal/type/enum.rb +12 -0
- data/lib/onebusaway_sdk/internal/type/file_input.rb +7 -0
- data/lib/onebusaway_sdk/internal/type/hash_of.rb +8 -0
- data/lib/onebusaway_sdk/internal/type/union.rb +12 -0
- data/lib/onebusaway_sdk/internal/type/unknown.rb +8 -0
- data/lib/onebusaway_sdk/internal/util.rb +54 -1
- data/lib/onebusaway_sdk/internal.rb +3 -0
- data/lib/onebusaway_sdk/models/agencies_with_coverage_list_response.rb +2 -2
- data/lib/onebusaway_sdk/models/agency_retrieve_response.rb +2 -2
- data/lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb +2 -2
- data/lib/onebusaway_sdk/models/arrival_and_departure_retrieve_response.rb +2 -2
- data/lib/onebusaway_sdk/models/block_retrieve_response.rb +2 -2
- data/lib/onebusaway_sdk/models/config_retrieve_response.rb +2 -2
- data/lib/onebusaway_sdk/models/current_time_retrieve_response.rb +2 -2
- data/lib/onebusaway_sdk/models/references.rb +38 -38
- data/lib/onebusaway_sdk/models/report_problem_with_stop_retrieve_params.rb +2 -2
- data/lib/onebusaway_sdk/models/report_problem_with_trip_retrieve_params.rb +2 -2
- data/lib/onebusaway_sdk/models/route_ids_for_agency_list_response.rb +2 -2
- data/lib/onebusaway_sdk/models/route_retrieve_response.rb +2 -2
- data/lib/onebusaway_sdk/models/routes_for_agency_list_response.rb +2 -2
- data/lib/onebusaway_sdk/models/routes_for_location_list_response.rb +2 -2
- data/lib/onebusaway_sdk/models/schedule_for_stop_retrieve_response.rb +2 -2
- data/lib/onebusaway_sdk/models/search_for_route_list_response.rb +2 -2
- data/lib/onebusaway_sdk/models/search_for_stop_list_response.rb +2 -2
- data/lib/onebusaway_sdk/models/shape_retrieve_response.rb +2 -2
- data/lib/onebusaway_sdk/models/stop_ids_for_agency_list_response.rb +2 -2
- data/lib/onebusaway_sdk/models/stop_retrieve_response.rb +2 -2
- data/lib/onebusaway_sdk/models/stops_for_agency_list_response.rb +2 -2
- data/lib/onebusaway_sdk/models/stops_for_location_list_response.rb +2 -2
- data/lib/onebusaway_sdk/models/stops_for_route_list_response.rb +2 -2
- data/lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb +2 -2
- data/lib/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rb +2 -2
- data/lib/onebusaway_sdk/models/trip_retrieve_response.rb +2 -2
- data/lib/onebusaway_sdk/models/trips_for_location_list_response.rb +2 -2
- data/lib/onebusaway_sdk/models/trips_for_route_list_response.rb +2 -2
- data/lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb +2 -2
- data/lib/onebusaway_sdk/models.rb +30 -19
- data/lib/onebusaway_sdk/resources/report_problem_with_stop.rb +2 -2
- data/lib/onebusaway_sdk/resources/report_problem_with_trip.rb +2 -2
- data/lib/onebusaway_sdk/version.rb +1 -1
- data/lib/onebusaway_sdk.rb +3 -1
- data/rbi/onebusaway_sdk/internal/type/array_of.rbi +6 -0
- data/rbi/onebusaway_sdk/internal/type/base_model.rbi +5 -0
- data/rbi/onebusaway_sdk/internal/type/boolean.rbi +6 -0
- data/rbi/onebusaway_sdk/internal/type/enum.rbi +5 -0
- data/rbi/onebusaway_sdk/internal/type/file_input.rbi +5 -0
- data/rbi/onebusaway_sdk/internal/type/hash_of.rbi +6 -0
- data/rbi/onebusaway_sdk/internal/type/union.rbi +5 -0
- data/rbi/onebusaway_sdk/internal/type/unknown.rbi +6 -0
- data/rbi/onebusaway_sdk/internal/util.rbi +34 -0
- data/rbi/onebusaway_sdk/internal.rbi +5 -0
- data/sig/onebusaway_sdk/internal/type/array_of.rbs +3 -0
- data/sig/onebusaway_sdk/internal/type/base_model.rbs +2 -0
- data/sig/onebusaway_sdk/internal/type/boolean.rbs +3 -0
- data/sig/onebusaway_sdk/internal/type/enum.rbs +2 -0
- data/sig/onebusaway_sdk/internal/type/file_input.rbs +2 -0
- data/sig/onebusaway_sdk/internal/type/hash_of.rbs +3 -0
- data/sig/onebusaway_sdk/internal/type/union.rbs +2 -0
- data/sig/onebusaway_sdk/internal/type/unknown.rbs +3 -0
- data/sig/onebusaway_sdk/internal/util.rbs +12 -0
- data/sig/onebusaway_sdk/internal.rbs +3 -0
- data/sig/onebusaway_sdk/models/agencies_with_coverage_list_params.rbs +2 -0
- data/sig/onebusaway_sdk/models/agencies_with_coverage_list_response.rbs +18 -0
- data/sig/onebusaway_sdk/models/agency_retrieve_params.rbs +2 -0
- data/sig/onebusaway_sdk/models/agency_retrieve_response.rbs +23 -0
- data/sig/onebusaway_sdk/models/arrival_and_departure_list_params.rbs +7 -0
- data/sig/onebusaway_sdk/models/arrival_and_departure_list_response.rbs +84 -0
- data/sig/onebusaway_sdk/models/arrival_and_departure_retrieve_params.rbs +9 -0
- data/sig/onebusaway_sdk/models/arrival_and_departure_retrieve_response.rbs +80 -0
- data/sig/onebusaway_sdk/models/block_retrieve_params.rbs +2 -0
- data/sig/onebusaway_sdk/models/block_retrieve_response.rbs +42 -0
- data/sig/onebusaway_sdk/models/config_retrieve_params.rbs +2 -0
- data/sig/onebusaway_sdk/models/config_retrieve_response.rbs +40 -0
- data/sig/onebusaway_sdk/models/current_time_retrieve_params.rbs +2 -0
- data/sig/onebusaway_sdk/models/current_time_retrieve_response.rbs +11 -0
- data/sig/onebusaway_sdk/models/references.rbs +128 -6
- data/sig/onebusaway_sdk/models/report_problem_with_stop_retrieve_params.rbs +9 -0
- data/sig/onebusaway_sdk/models/report_problem_with_trip_retrieve_params.rbs +14 -0
- data/sig/onebusaway_sdk/models/response_wrapper.rbs +7 -0
- data/sig/onebusaway_sdk/models/route_ids_for_agency_list_params.rbs +2 -0
- data/sig/onebusaway_sdk/models/route_ids_for_agency_list_response.rbs +10 -0
- data/sig/onebusaway_sdk/models/route_retrieve_params.rbs +2 -0
- data/sig/onebusaway_sdk/models/route_retrieve_response.rbs +22 -0
- data/sig/onebusaway_sdk/models/routes_for_agency_list_params.rbs +2 -0
- data/sig/onebusaway_sdk/models/routes_for_agency_list_response.rbs +23 -0
- data/sig/onebusaway_sdk/models/routes_for_location_list_params.rbs +10 -0
- data/sig/onebusaway_sdk/models/routes_for_location_list_response.rbs +24 -0
- data/sig/onebusaway_sdk/models/schedule_for_route_retrieve_params.rbs +5 -0
- data/sig/onebusaway_sdk/models/schedule_for_route_retrieve_response.rbs +69 -0
- data/sig/onebusaway_sdk/models/schedule_for_stop_retrieve_params.rbs +5 -0
- data/sig/onebusaway_sdk/models/schedule_for_stop_retrieve_response.rbs +45 -0
- data/sig/onebusaway_sdk/models/search_for_route_list_params.rbs +6 -0
- data/sig/onebusaway_sdk/models/search_for_route_list_response.rbs +24 -0
- data/sig/onebusaway_sdk/models/search_for_stop_list_params.rbs +6 -0
- data/sig/onebusaway_sdk/models/search_for_stop_list_response.rbs +25 -0
- data/sig/onebusaway_sdk/models/shape_retrieve_params.rbs +2 -0
- data/sig/onebusaway_sdk/models/shape_retrieve_response.rbs +11 -0
- data/sig/onebusaway_sdk/models/stop_ids_for_agency_list_params.rbs +2 -0
- data/sig/onebusaway_sdk/models/stop_ids_for_agency_list_response.rbs +10 -0
- data/sig/onebusaway_sdk/models/stop_retrieve_params.rbs +2 -0
- data/sig/onebusaway_sdk/models/stop_retrieve_response.rbs +23 -0
- data/sig/onebusaway_sdk/models/stops_for_agency_list_params.rbs +2 -0
- data/sig/onebusaway_sdk/models/stops_for_agency_list_response.rbs +21 -0
- data/sig/onebusaway_sdk/models/stops_for_location_list_params.rbs +10 -0
- data/sig/onebusaway_sdk/models/stops_for_location_list_response.rbs +25 -0
- data/sig/onebusaway_sdk/models/stops_for_route_list_params.rbs +6 -0
- data/sig/onebusaway_sdk/models/stops_for_route_list_response.rbs +37 -0
- data/sig/onebusaway_sdk/models/trip_detail_retrieve_params.rbs +9 -0
- data/sig/onebusaway_sdk/models/trip_detail_retrieve_response.rbs +69 -0
- data/sig/onebusaway_sdk/models/trip_for_vehicle_retrieve_params.rbs +8 -0
- data/sig/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rbs +69 -0
- data/sig/onebusaway_sdk/models/trip_retrieve_params.rbs +2 -0
- data/sig/onebusaway_sdk/models/trip_retrieve_response.rbs +23 -0
- data/sig/onebusaway_sdk/models/trips_for_location_list_params.rbs +11 -0
- data/sig/onebusaway_sdk/models/trips_for_location_list_response.rbs +71 -0
- data/sig/onebusaway_sdk/models/trips_for_route_list_params.rbs +7 -0
- data/sig/onebusaway_sdk/models/trips_for_route_list_response.rbs +70 -0
- data/sig/onebusaway_sdk/models/vehicles_for_agency_list_params.rbs +5 -0
- data/sig/onebusaway_sdk/models/vehicles_for_agency_list_response.rbs +60 -0
- metadata +2 -2
@@ -14,6 +14,10 @@ module OnebusawaySDK
|
|
14
14
|
data: OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data
|
15
15
|
) -> void
|
16
16
|
|
17
|
+
def to_hash: -> {
|
18
|
+
data: OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data
|
19
|
+
}
|
20
|
+
|
17
21
|
type data =
|
18
22
|
{
|
19
23
|
entry: OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry,
|
@@ -30,6 +34,11 @@ module OnebusawaySDK
|
|
30
34
|
references: OnebusawaySDK::References
|
31
35
|
) -> void
|
32
36
|
|
37
|
+
def to_hash: -> {
|
38
|
+
entry: OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry,
|
39
|
+
references: OnebusawaySDK::References
|
40
|
+
}
|
41
|
+
|
33
42
|
type entry =
|
34
43
|
{
|
35
44
|
arrivals_and_departures: ::Array[OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture]
|
@@ -42,6 +51,10 @@ module OnebusawaySDK
|
|
42
51
|
arrivals_and_departures: ::Array[OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture]
|
43
52
|
) -> void
|
44
53
|
|
54
|
+
def to_hash: -> {
|
55
|
+
arrivals_and_departures: ::Array[OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture]
|
56
|
+
}
|
57
|
+
|
45
58
|
type arrivals_and_departure =
|
46
59
|
{
|
47
60
|
arrival_enabled: bool,
|
@@ -224,6 +237,43 @@ module OnebusawaySDK
|
|
224
237
|
?trip_status: OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus
|
225
238
|
) -> void
|
226
239
|
|
240
|
+
def to_hash: -> {
|
241
|
+
arrival_enabled: bool,
|
242
|
+
block_trip_sequence: Integer,
|
243
|
+
departure_enabled: bool,
|
244
|
+
number_of_stops_away: Integer,
|
245
|
+
predicted_arrival_time: Integer,
|
246
|
+
predicted_departure_time: Integer,
|
247
|
+
route_id: String,
|
248
|
+
scheduled_arrival_time: Integer,
|
249
|
+
scheduled_departure_time: Integer,
|
250
|
+
service_date: Integer,
|
251
|
+
stop_id: String,
|
252
|
+
stop_sequence: Integer,
|
253
|
+
total_stops_in_trip: Integer,
|
254
|
+
trip_headsign: String,
|
255
|
+
trip_id: String,
|
256
|
+
vehicle_id: String,
|
257
|
+
actual_track: String,
|
258
|
+
distance_from_stop: Float,
|
259
|
+
frequency: String,
|
260
|
+
historical_occupancy: String,
|
261
|
+
last_update_time: Integer,
|
262
|
+
occupancy_status: String,
|
263
|
+
predicted: bool,
|
264
|
+
predicted_arrival_interval: String,
|
265
|
+
predicted_departure_interval: String,
|
266
|
+
predicted_occupancy: String,
|
267
|
+
route_long_name: String,
|
268
|
+
route_short_name: String,
|
269
|
+
scheduled_arrival_interval: String,
|
270
|
+
scheduled_departure_interval: String,
|
271
|
+
scheduled_track: String,
|
272
|
+
situation_ids: ::Array[String],
|
273
|
+
status: String,
|
274
|
+
trip_status: OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus
|
275
|
+
}
|
276
|
+
|
227
277
|
type trip_status =
|
228
278
|
{
|
229
279
|
active_trip_id: String,
|
@@ -366,6 +416,36 @@ module OnebusawaySDK
|
|
366
416
|
?vehicle_id: String
|
367
417
|
) -> void
|
368
418
|
|
419
|
+
def to_hash: -> {
|
420
|
+
active_trip_id: String,
|
421
|
+
block_trip_sequence: Integer,
|
422
|
+
closest_stop: String,
|
423
|
+
distance_along_trip: Float,
|
424
|
+
last_known_distance_along_trip: Float,
|
425
|
+
last_location_update_time: Integer,
|
426
|
+
last_update_time: Integer,
|
427
|
+
occupancy_capacity: Integer,
|
428
|
+
occupancy_count: Integer,
|
429
|
+
occupancy_status: String,
|
430
|
+
phase: String,
|
431
|
+
predicted: bool,
|
432
|
+
schedule_deviation: Integer,
|
433
|
+
service_date: Integer,
|
434
|
+
status: String,
|
435
|
+
total_distance_along_trip: Float,
|
436
|
+
closest_stop_time_offset: Integer,
|
437
|
+
frequency: String,
|
438
|
+
last_known_location: OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation,
|
439
|
+
last_known_orientation: Float,
|
440
|
+
next_stop: String,
|
441
|
+
next_stop_time_offset: Integer,
|
442
|
+
orientation: Float,
|
443
|
+
position: OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::Position,
|
444
|
+
scheduled_distance_along_trip: Float,
|
445
|
+
situation_ids: ::Array[String],
|
446
|
+
vehicle_id: String
|
447
|
+
}
|
448
|
+
|
369
449
|
type last_known_location = { lat: Float, lon: Float }
|
370
450
|
|
371
451
|
class LastKnownLocation < OnebusawaySDK::Internal::Type::BaseModel
|
@@ -378,6 +458,8 @@ module OnebusawaySDK
|
|
378
458
|
def lon=: (Float) -> Float
|
379
459
|
|
380
460
|
def initialize: (?lat: Float, ?lon: Float) -> void
|
461
|
+
|
462
|
+
def to_hash: -> { lat: Float, lon: Float }
|
381
463
|
end
|
382
464
|
|
383
465
|
type position = { lat: Float, lon: Float }
|
@@ -392,6 +474,8 @@ module OnebusawaySDK
|
|
392
474
|
def lon=: (Float) -> Float
|
393
475
|
|
394
476
|
def initialize: (?lat: Float, ?lon: Float) -> void
|
477
|
+
|
478
|
+
def to_hash: -> { lat: Float, lon: Float }
|
395
479
|
end
|
396
480
|
end
|
397
481
|
end
|
@@ -38,6 +38,15 @@ module OnebusawaySDK
|
|
38
38
|
?vehicle_id: String,
|
39
39
|
?request_options: OnebusawaySDK::request_opts
|
40
40
|
) -> void
|
41
|
+
|
42
|
+
def to_hash: -> {
|
43
|
+
service_date: Integer,
|
44
|
+
trip_id: String,
|
45
|
+
stop_sequence: Integer,
|
46
|
+
time: Integer,
|
47
|
+
vehicle_id: String,
|
48
|
+
request_options: OnebusawaySDK::RequestOptions
|
49
|
+
}
|
41
50
|
end
|
42
51
|
end
|
43
52
|
end
|
@@ -14,6 +14,10 @@ module OnebusawaySDK
|
|
14
14
|
data: OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data
|
15
15
|
) -> void
|
16
16
|
|
17
|
+
def to_hash: -> {
|
18
|
+
data: OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data
|
19
|
+
}
|
20
|
+
|
17
21
|
type data =
|
18
22
|
{
|
19
23
|
entry: OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry,
|
@@ -30,6 +34,11 @@ module OnebusawaySDK
|
|
30
34
|
references: OnebusawaySDK::References
|
31
35
|
) -> void
|
32
36
|
|
37
|
+
def to_hash: -> {
|
38
|
+
entry: OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry,
|
39
|
+
references: OnebusawaySDK::References
|
40
|
+
}
|
41
|
+
|
33
42
|
type entry =
|
34
43
|
{
|
35
44
|
arrival_enabled: bool,
|
@@ -212,6 +221,43 @@ module OnebusawaySDK
|
|
212
221
|
?trip_status: OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus
|
213
222
|
) -> void
|
214
223
|
|
224
|
+
def to_hash: -> {
|
225
|
+
arrival_enabled: bool,
|
226
|
+
block_trip_sequence: Integer,
|
227
|
+
departure_enabled: bool,
|
228
|
+
number_of_stops_away: Integer,
|
229
|
+
predicted_arrival_time: Integer,
|
230
|
+
predicted_departure_time: Integer,
|
231
|
+
route_id: String,
|
232
|
+
scheduled_arrival_time: Integer,
|
233
|
+
scheduled_departure_time: Integer,
|
234
|
+
service_date: Integer,
|
235
|
+
stop_id: String,
|
236
|
+
stop_sequence: Integer,
|
237
|
+
total_stops_in_trip: Integer,
|
238
|
+
trip_headsign: String,
|
239
|
+
trip_id: String,
|
240
|
+
vehicle_id: String,
|
241
|
+
actual_track: String,
|
242
|
+
distance_from_stop: Float,
|
243
|
+
frequency: String,
|
244
|
+
historical_occupancy: String,
|
245
|
+
last_update_time: Integer,
|
246
|
+
occupancy_status: String,
|
247
|
+
predicted: bool,
|
248
|
+
predicted_arrival_interval: String,
|
249
|
+
predicted_departure_interval: String,
|
250
|
+
predicted_occupancy: String,
|
251
|
+
route_long_name: String,
|
252
|
+
route_short_name: String,
|
253
|
+
scheduled_arrival_interval: String,
|
254
|
+
scheduled_departure_interval: String,
|
255
|
+
scheduled_track: String,
|
256
|
+
situation_ids: ::Array[String],
|
257
|
+
status: String,
|
258
|
+
trip_status: OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus
|
259
|
+
}
|
260
|
+
|
215
261
|
type trip_status =
|
216
262
|
{
|
217
263
|
active_trip_id: String,
|
@@ -354,6 +400,36 @@ module OnebusawaySDK
|
|
354
400
|
?vehicle_id: String
|
355
401
|
) -> void
|
356
402
|
|
403
|
+
def to_hash: -> {
|
404
|
+
active_trip_id: String,
|
405
|
+
block_trip_sequence: Integer,
|
406
|
+
closest_stop: String,
|
407
|
+
distance_along_trip: Float,
|
408
|
+
last_known_distance_along_trip: Float,
|
409
|
+
last_location_update_time: Integer,
|
410
|
+
last_update_time: Integer,
|
411
|
+
occupancy_capacity: Integer,
|
412
|
+
occupancy_count: Integer,
|
413
|
+
occupancy_status: String,
|
414
|
+
phase: String,
|
415
|
+
predicted: bool,
|
416
|
+
schedule_deviation: Integer,
|
417
|
+
service_date: Integer,
|
418
|
+
status: String,
|
419
|
+
total_distance_along_trip: Float,
|
420
|
+
closest_stop_time_offset: Integer,
|
421
|
+
frequency: String,
|
422
|
+
last_known_location: OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus::LastKnownLocation,
|
423
|
+
last_known_orientation: Float,
|
424
|
+
next_stop: String,
|
425
|
+
next_stop_time_offset: Integer,
|
426
|
+
orientation: Float,
|
427
|
+
position: OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus::Position,
|
428
|
+
scheduled_distance_along_trip: Float,
|
429
|
+
situation_ids: ::Array[String],
|
430
|
+
vehicle_id: String
|
431
|
+
}
|
432
|
+
|
357
433
|
type last_known_location = { lat: Float, lon: Float }
|
358
434
|
|
359
435
|
class LastKnownLocation < OnebusawaySDK::Internal::Type::BaseModel
|
@@ -366,6 +442,8 @@ module OnebusawaySDK
|
|
366
442
|
def lon=: (Float) -> Float
|
367
443
|
|
368
444
|
def initialize: (?lat: Float, ?lon: Float) -> void
|
445
|
+
|
446
|
+
def to_hash: -> { lat: Float, lon: Float }
|
369
447
|
end
|
370
448
|
|
371
449
|
type position = { lat: Float, lon: Float }
|
@@ -380,6 +458,8 @@ module OnebusawaySDK
|
|
380
458
|
def lon=: (Float) -> Float
|
381
459
|
|
382
460
|
def initialize: (?lat: Float, ?lon: Float) -> void
|
461
|
+
|
462
|
+
def to_hash: -> { lat: Float, lon: Float }
|
383
463
|
end
|
384
464
|
end
|
385
465
|
end
|
@@ -14,6 +14,10 @@ module OnebusawaySDK
|
|
14
14
|
data: OnebusawaySDK::Models::BlockRetrieveResponse::Data
|
15
15
|
) -> void
|
16
16
|
|
17
|
+
def to_hash: -> {
|
18
|
+
data: OnebusawaySDK::Models::BlockRetrieveResponse::Data
|
19
|
+
}
|
20
|
+
|
17
21
|
type data =
|
18
22
|
{
|
19
23
|
entry: OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry,
|
@@ -30,6 +34,11 @@ module OnebusawaySDK
|
|
30
34
|
references: OnebusawaySDK::References
|
31
35
|
) -> void
|
32
36
|
|
37
|
+
def to_hash: -> {
|
38
|
+
entry: OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry,
|
39
|
+
references: OnebusawaySDK::References
|
40
|
+
}
|
41
|
+
|
33
42
|
type entry =
|
34
43
|
{
|
35
44
|
id: String,
|
@@ -46,6 +55,11 @@ module OnebusawaySDK
|
|
46
55
|
configurations: ::Array[OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry::Configuration]
|
47
56
|
) -> void
|
48
57
|
|
58
|
+
def to_hash: -> {
|
59
|
+
id: String,
|
60
|
+
configurations: ::Array[OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry::Configuration]
|
61
|
+
}
|
62
|
+
|
49
63
|
type configuration =
|
50
64
|
{
|
51
65
|
active_service_ids: ::Array[String],
|
@@ -68,6 +82,12 @@ module OnebusawaySDK
|
|
68
82
|
?inactive_service_ids: ::Array[String]
|
69
83
|
) -> void
|
70
84
|
|
85
|
+
def to_hash: -> {
|
86
|
+
active_service_ids: ::Array[String],
|
87
|
+
trips: ::Array[OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry::Configuration::Trip],
|
88
|
+
inactive_service_ids: ::Array[String]
|
89
|
+
}
|
90
|
+
|
71
91
|
type trip =
|
72
92
|
{
|
73
93
|
accumulated_slack_time: Float,
|
@@ -92,6 +112,13 @@ module OnebusawaySDK
|
|
92
112
|
trip_id: String
|
93
113
|
) -> void
|
94
114
|
|
115
|
+
def to_hash: -> {
|
116
|
+
accumulated_slack_time: Float,
|
117
|
+
block_stop_times: ::Array[OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry::Configuration::Trip::BlockStopTime],
|
118
|
+
distance_along_block: Float,
|
119
|
+
trip_id: String
|
120
|
+
}
|
121
|
+
|
95
122
|
type block_stop_time =
|
96
123
|
{
|
97
124
|
accumulated_slack_time: Float,
|
@@ -116,6 +143,13 @@ module OnebusawaySDK
|
|
116
143
|
stop_time: OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry::Configuration::Trip::BlockStopTime::StopTime
|
117
144
|
) -> void
|
118
145
|
|
146
|
+
def to_hash: -> {
|
147
|
+
accumulated_slack_time: Float,
|
148
|
+
block_sequence: Integer,
|
149
|
+
distance_along_block: Float,
|
150
|
+
stop_time: OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry::Configuration::Trip::BlockStopTime::StopTime
|
151
|
+
}
|
152
|
+
|
119
153
|
type stop_time =
|
120
154
|
{
|
121
155
|
arrival_time: Integer,
|
@@ -147,6 +181,14 @@ module OnebusawaySDK
|
|
147
181
|
?drop_off_type: Integer,
|
148
182
|
?pickup_type: Integer
|
149
183
|
) -> void
|
184
|
+
|
185
|
+
def to_hash: -> {
|
186
|
+
arrival_time: Integer,
|
187
|
+
departure_time: Integer,
|
188
|
+
stop_id: String,
|
189
|
+
drop_off_type: Integer,
|
190
|
+
pickup_type: Integer
|
191
|
+
}
|
150
192
|
end
|
151
193
|
end
|
152
194
|
end
|
@@ -14,6 +14,10 @@ module OnebusawaySDK
|
|
14
14
|
data: OnebusawaySDK::Models::ConfigRetrieveResponse::Data
|
15
15
|
) -> void
|
16
16
|
|
17
|
+
def to_hash: -> {
|
18
|
+
data: OnebusawaySDK::Models::ConfigRetrieveResponse::Data
|
19
|
+
}
|
20
|
+
|
17
21
|
type data =
|
18
22
|
{
|
19
23
|
entry: OnebusawaySDK::Models::ConfigRetrieveResponse::Data::Entry,
|
@@ -30,6 +34,11 @@ module OnebusawaySDK
|
|
30
34
|
references: OnebusawaySDK::References
|
31
35
|
) -> void
|
32
36
|
|
37
|
+
def to_hash: -> {
|
38
|
+
entry: OnebusawaySDK::Models::ConfigRetrieveResponse::Data::Entry,
|
39
|
+
references: OnebusawaySDK::References
|
40
|
+
}
|
41
|
+
|
33
42
|
type entry =
|
34
43
|
{
|
35
44
|
id: String,
|
@@ -70,6 +79,14 @@ module OnebusawaySDK
|
|
70
79
|
?service_date_to: String
|
71
80
|
) -> void
|
72
81
|
|
82
|
+
def to_hash: -> {
|
83
|
+
id: String,
|
84
|
+
git_properties: OnebusawaySDK::Models::ConfigRetrieveResponse::Data::Entry::GitProperties,
|
85
|
+
name: String,
|
86
|
+
service_date_from: String,
|
87
|
+
service_date_to: String
|
88
|
+
}
|
89
|
+
|
73
90
|
type git_properties =
|
74
91
|
{
|
75
92
|
git_branch: String,
|
@@ -197,6 +214,29 @@ module OnebusawaySDK
|
|
197
214
|
?git_remote_origin_url: String,
|
198
215
|
?git_tags: String
|
199
216
|
) -> void
|
217
|
+
|
218
|
+
def to_hash: -> {
|
219
|
+
git_branch: String,
|
220
|
+
git_build_host: String,
|
221
|
+
git_build_time: String,
|
222
|
+
git_build_user_email: String,
|
223
|
+
git_build_user_name: String,
|
224
|
+
git_build_version: String,
|
225
|
+
git_closest_tag_commit_count: String,
|
226
|
+
git_closest_tag_name: String,
|
227
|
+
git_commit_id: String,
|
228
|
+
git_commit_id_abbrev: String,
|
229
|
+
git_commit_id_describe: String,
|
230
|
+
git_commit_id_describe_short: String,
|
231
|
+
git_commit_message_full: String,
|
232
|
+
git_commit_message_short: String,
|
233
|
+
git_commit_time: String,
|
234
|
+
git_commit_user_email: String,
|
235
|
+
git_commit_user_name: String,
|
236
|
+
git_dirty: String,
|
237
|
+
git_remote_origin_url: String,
|
238
|
+
git_tags: String
|
239
|
+
}
|
200
240
|
end
|
201
241
|
end
|
202
242
|
end
|
@@ -14,6 +14,10 @@ module OnebusawaySDK
|
|
14
14
|
data: OnebusawaySDK::Models::CurrentTimeRetrieveResponse::Data
|
15
15
|
) -> void
|
16
16
|
|
17
|
+
def to_hash: -> {
|
18
|
+
data: OnebusawaySDK::Models::CurrentTimeRetrieveResponse::Data
|
19
|
+
}
|
20
|
+
|
17
21
|
type data =
|
18
22
|
{
|
19
23
|
entry: OnebusawaySDK::Models::CurrentTimeRetrieveResponse::Data::Entry,
|
@@ -30,6 +34,11 @@ module OnebusawaySDK
|
|
30
34
|
references: OnebusawaySDK::References
|
31
35
|
) -> void
|
32
36
|
|
37
|
+
def to_hash: -> {
|
38
|
+
entry: OnebusawaySDK::Models::CurrentTimeRetrieveResponse::Data::Entry,
|
39
|
+
references: OnebusawaySDK::References
|
40
|
+
}
|
41
|
+
|
33
42
|
type entry = { readable_time: String, time: Integer }
|
34
43
|
|
35
44
|
class Entry < OnebusawaySDK::Internal::Type::BaseModel
|
@@ -42,6 +51,8 @@ module OnebusawaySDK
|
|
42
51
|
def time=: (Integer) -> Integer
|
43
52
|
|
44
53
|
def initialize: (?readable_time: String, ?time: Integer) -> void
|
54
|
+
|
55
|
+
def to_hash: -> { readable_time: String, time: Integer }
|
45
56
|
end
|
46
57
|
end
|
47
58
|
end
|