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.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/README.md +4 -4
  4. data/SECURITY.md +2 -2
  5. data/lib/onebusaway_sdk/internal/type/array_of.rb +8 -0
  6. data/lib/onebusaway_sdk/internal/type/base_model.rb +7 -0
  7. data/lib/onebusaway_sdk/internal/type/boolean.rb +8 -0
  8. data/lib/onebusaway_sdk/internal/type/enum.rb +12 -0
  9. data/lib/onebusaway_sdk/internal/type/file_input.rb +7 -0
  10. data/lib/onebusaway_sdk/internal/type/hash_of.rb +8 -0
  11. data/lib/onebusaway_sdk/internal/type/union.rb +12 -0
  12. data/lib/onebusaway_sdk/internal/type/unknown.rb +8 -0
  13. data/lib/onebusaway_sdk/internal/util.rb +54 -1
  14. data/lib/onebusaway_sdk/internal.rb +3 -0
  15. data/lib/onebusaway_sdk/models/agencies_with_coverage_list_response.rb +2 -2
  16. data/lib/onebusaway_sdk/models/agency_retrieve_response.rb +2 -2
  17. data/lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb +2 -2
  18. data/lib/onebusaway_sdk/models/arrival_and_departure_retrieve_response.rb +2 -2
  19. data/lib/onebusaway_sdk/models/block_retrieve_response.rb +2 -2
  20. data/lib/onebusaway_sdk/models/config_retrieve_response.rb +2 -2
  21. data/lib/onebusaway_sdk/models/current_time_retrieve_response.rb +2 -2
  22. data/lib/onebusaway_sdk/models/references.rb +38 -38
  23. data/lib/onebusaway_sdk/models/report_problem_with_stop_retrieve_params.rb +2 -2
  24. data/lib/onebusaway_sdk/models/report_problem_with_trip_retrieve_params.rb +2 -2
  25. data/lib/onebusaway_sdk/models/route_ids_for_agency_list_response.rb +2 -2
  26. data/lib/onebusaway_sdk/models/route_retrieve_response.rb +2 -2
  27. data/lib/onebusaway_sdk/models/routes_for_agency_list_response.rb +2 -2
  28. data/lib/onebusaway_sdk/models/routes_for_location_list_response.rb +2 -2
  29. data/lib/onebusaway_sdk/models/schedule_for_stop_retrieve_response.rb +2 -2
  30. data/lib/onebusaway_sdk/models/search_for_route_list_response.rb +2 -2
  31. data/lib/onebusaway_sdk/models/search_for_stop_list_response.rb +2 -2
  32. data/lib/onebusaway_sdk/models/shape_retrieve_response.rb +2 -2
  33. data/lib/onebusaway_sdk/models/stop_ids_for_agency_list_response.rb +2 -2
  34. data/lib/onebusaway_sdk/models/stop_retrieve_response.rb +2 -2
  35. data/lib/onebusaway_sdk/models/stops_for_agency_list_response.rb +2 -2
  36. data/lib/onebusaway_sdk/models/stops_for_location_list_response.rb +2 -2
  37. data/lib/onebusaway_sdk/models/stops_for_route_list_response.rb +2 -2
  38. data/lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb +2 -2
  39. data/lib/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rb +2 -2
  40. data/lib/onebusaway_sdk/models/trip_retrieve_response.rb +2 -2
  41. data/lib/onebusaway_sdk/models/trips_for_location_list_response.rb +2 -2
  42. data/lib/onebusaway_sdk/models/trips_for_route_list_response.rb +2 -2
  43. data/lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb +2 -2
  44. data/lib/onebusaway_sdk/models.rb +30 -19
  45. data/lib/onebusaway_sdk/resources/report_problem_with_stop.rb +2 -2
  46. data/lib/onebusaway_sdk/resources/report_problem_with_trip.rb +2 -2
  47. data/lib/onebusaway_sdk/version.rb +1 -1
  48. data/lib/onebusaway_sdk.rb +3 -1
  49. data/rbi/onebusaway_sdk/internal/type/array_of.rbi +6 -0
  50. data/rbi/onebusaway_sdk/internal/type/base_model.rbi +5 -0
  51. data/rbi/onebusaway_sdk/internal/type/boolean.rbi +6 -0
  52. data/rbi/onebusaway_sdk/internal/type/enum.rbi +5 -0
  53. data/rbi/onebusaway_sdk/internal/type/file_input.rbi +5 -0
  54. data/rbi/onebusaway_sdk/internal/type/hash_of.rbi +6 -0
  55. data/rbi/onebusaway_sdk/internal/type/union.rbi +5 -0
  56. data/rbi/onebusaway_sdk/internal/type/unknown.rbi +6 -0
  57. data/rbi/onebusaway_sdk/internal/util.rbi +34 -0
  58. data/rbi/onebusaway_sdk/internal.rbi +5 -0
  59. data/sig/onebusaway_sdk/internal/type/array_of.rbs +3 -0
  60. data/sig/onebusaway_sdk/internal/type/base_model.rbs +2 -0
  61. data/sig/onebusaway_sdk/internal/type/boolean.rbs +3 -0
  62. data/sig/onebusaway_sdk/internal/type/enum.rbs +2 -0
  63. data/sig/onebusaway_sdk/internal/type/file_input.rbs +2 -0
  64. data/sig/onebusaway_sdk/internal/type/hash_of.rbs +3 -0
  65. data/sig/onebusaway_sdk/internal/type/union.rbs +2 -0
  66. data/sig/onebusaway_sdk/internal/type/unknown.rbs +3 -0
  67. data/sig/onebusaway_sdk/internal/util.rbs +12 -0
  68. data/sig/onebusaway_sdk/internal.rbs +3 -0
  69. data/sig/onebusaway_sdk/models/agencies_with_coverage_list_params.rbs +2 -0
  70. data/sig/onebusaway_sdk/models/agencies_with_coverage_list_response.rbs +18 -0
  71. data/sig/onebusaway_sdk/models/agency_retrieve_params.rbs +2 -0
  72. data/sig/onebusaway_sdk/models/agency_retrieve_response.rbs +23 -0
  73. data/sig/onebusaway_sdk/models/arrival_and_departure_list_params.rbs +7 -0
  74. data/sig/onebusaway_sdk/models/arrival_and_departure_list_response.rbs +84 -0
  75. data/sig/onebusaway_sdk/models/arrival_and_departure_retrieve_params.rbs +9 -0
  76. data/sig/onebusaway_sdk/models/arrival_and_departure_retrieve_response.rbs +80 -0
  77. data/sig/onebusaway_sdk/models/block_retrieve_params.rbs +2 -0
  78. data/sig/onebusaway_sdk/models/block_retrieve_response.rbs +42 -0
  79. data/sig/onebusaway_sdk/models/config_retrieve_params.rbs +2 -0
  80. data/sig/onebusaway_sdk/models/config_retrieve_response.rbs +40 -0
  81. data/sig/onebusaway_sdk/models/current_time_retrieve_params.rbs +2 -0
  82. data/sig/onebusaway_sdk/models/current_time_retrieve_response.rbs +11 -0
  83. data/sig/onebusaway_sdk/models/references.rbs +128 -6
  84. data/sig/onebusaway_sdk/models/report_problem_with_stop_retrieve_params.rbs +9 -0
  85. data/sig/onebusaway_sdk/models/report_problem_with_trip_retrieve_params.rbs +14 -0
  86. data/sig/onebusaway_sdk/models/response_wrapper.rbs +7 -0
  87. data/sig/onebusaway_sdk/models/route_ids_for_agency_list_params.rbs +2 -0
  88. data/sig/onebusaway_sdk/models/route_ids_for_agency_list_response.rbs +10 -0
  89. data/sig/onebusaway_sdk/models/route_retrieve_params.rbs +2 -0
  90. data/sig/onebusaway_sdk/models/route_retrieve_response.rbs +22 -0
  91. data/sig/onebusaway_sdk/models/routes_for_agency_list_params.rbs +2 -0
  92. data/sig/onebusaway_sdk/models/routes_for_agency_list_response.rbs +23 -0
  93. data/sig/onebusaway_sdk/models/routes_for_location_list_params.rbs +10 -0
  94. data/sig/onebusaway_sdk/models/routes_for_location_list_response.rbs +24 -0
  95. data/sig/onebusaway_sdk/models/schedule_for_route_retrieve_params.rbs +5 -0
  96. data/sig/onebusaway_sdk/models/schedule_for_route_retrieve_response.rbs +69 -0
  97. data/sig/onebusaway_sdk/models/schedule_for_stop_retrieve_params.rbs +5 -0
  98. data/sig/onebusaway_sdk/models/schedule_for_stop_retrieve_response.rbs +45 -0
  99. data/sig/onebusaway_sdk/models/search_for_route_list_params.rbs +6 -0
  100. data/sig/onebusaway_sdk/models/search_for_route_list_response.rbs +24 -0
  101. data/sig/onebusaway_sdk/models/search_for_stop_list_params.rbs +6 -0
  102. data/sig/onebusaway_sdk/models/search_for_stop_list_response.rbs +25 -0
  103. data/sig/onebusaway_sdk/models/shape_retrieve_params.rbs +2 -0
  104. data/sig/onebusaway_sdk/models/shape_retrieve_response.rbs +11 -0
  105. data/sig/onebusaway_sdk/models/stop_ids_for_agency_list_params.rbs +2 -0
  106. data/sig/onebusaway_sdk/models/stop_ids_for_agency_list_response.rbs +10 -0
  107. data/sig/onebusaway_sdk/models/stop_retrieve_params.rbs +2 -0
  108. data/sig/onebusaway_sdk/models/stop_retrieve_response.rbs +23 -0
  109. data/sig/onebusaway_sdk/models/stops_for_agency_list_params.rbs +2 -0
  110. data/sig/onebusaway_sdk/models/stops_for_agency_list_response.rbs +21 -0
  111. data/sig/onebusaway_sdk/models/stops_for_location_list_params.rbs +10 -0
  112. data/sig/onebusaway_sdk/models/stops_for_location_list_response.rbs +25 -0
  113. data/sig/onebusaway_sdk/models/stops_for_route_list_params.rbs +6 -0
  114. data/sig/onebusaway_sdk/models/stops_for_route_list_response.rbs +37 -0
  115. data/sig/onebusaway_sdk/models/trip_detail_retrieve_params.rbs +9 -0
  116. data/sig/onebusaway_sdk/models/trip_detail_retrieve_response.rbs +69 -0
  117. data/sig/onebusaway_sdk/models/trip_for_vehicle_retrieve_params.rbs +8 -0
  118. data/sig/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rbs +69 -0
  119. data/sig/onebusaway_sdk/models/trip_retrieve_params.rbs +2 -0
  120. data/sig/onebusaway_sdk/models/trip_retrieve_response.rbs +23 -0
  121. data/sig/onebusaway_sdk/models/trips_for_location_list_params.rbs +11 -0
  122. data/sig/onebusaway_sdk/models/trips_for_location_list_response.rbs +71 -0
  123. data/sig/onebusaway_sdk/models/trips_for_route_list_params.rbs +7 -0
  124. data/sig/onebusaway_sdk/models/trips_for_route_list_response.rbs +70 -0
  125. data/sig/onebusaway_sdk/models/vehicles_for_agency_list_params.rbs +5 -0
  126. data/sig/onebusaway_sdk/models/vehicles_for_agency_list_response.rbs +60 -0
  127. metadata +2 -2
@@ -36,6 +36,14 @@ module OnebusawaySDK
36
36
  ?time: Integer,
37
37
  ?request_options: OnebusawaySDK::request_opts
38
38
  ) -> void
39
+
40
+ def to_hash: -> {
41
+ include_schedule: bool,
42
+ include_status: bool,
43
+ include_trip: bool,
44
+ time: Integer,
45
+ request_options: OnebusawaySDK::RequestOptions
46
+ }
39
47
  end
40
48
  end
41
49
  end
@@ -14,6 +14,10 @@ module OnebusawaySDK
14
14
  data: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data
15
15
  ) -> void
16
16
 
17
+ def to_hash: -> {
18
+ data: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data
19
+ }
20
+
17
21
  type data =
18
22
  {
19
23
  entry: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::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::TripForVehicleRetrieveResponse::Data::Entry,
39
+ references: OnebusawaySDK::References
40
+ }
41
+
33
42
  type entry =
34
43
  {
35
44
  trip_id: String,
@@ -74,6 +83,15 @@ module OnebusawaySDK
74
83
  ?status: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Status
75
84
  ) -> void
76
85
 
86
+ def to_hash: -> {
87
+ trip_id: String,
88
+ frequency: String?,
89
+ schedule: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule,
90
+ service_date: Integer,
91
+ situation_ids: ::Array[String],
92
+ status: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Status
93
+ }
94
+
77
95
  type schedule =
78
96
  {
79
97
  next_trip_id: String,
@@ -102,6 +120,14 @@ module OnebusawaySDK
102
120
  ?frequency: String?
103
121
  ) -> void
104
122
 
123
+ def to_hash: -> {
124
+ next_trip_id: String,
125
+ previous_trip_id: String,
126
+ stop_times: ::Array[OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule::StopTime],
127
+ time_zone: String,
128
+ frequency: String?
129
+ }
130
+
105
131
  type stop_time =
106
132
  {
107
133
  arrival_time: Integer,
@@ -145,6 +171,15 @@ module OnebusawaySDK
145
171
  ?stop_headsign: String,
146
172
  ?stop_id: String
147
173
  ) -> void
174
+
175
+ def to_hash: -> {
176
+ arrival_time: Integer,
177
+ departure_time: Integer,
178
+ distance_along_trip: Float,
179
+ historical_occupancy: String,
180
+ stop_headsign: String,
181
+ stop_id: String
182
+ }
148
183
  end
149
184
  end
150
185
 
@@ -290,6 +325,36 @@ module OnebusawaySDK
290
325
  ?vehicle_id: String
291
326
  ) -> void
292
327
 
328
+ def to_hash: -> {
329
+ active_trip_id: String,
330
+ block_trip_sequence: Integer,
331
+ closest_stop: String,
332
+ distance_along_trip: Float,
333
+ last_known_distance_along_trip: Float,
334
+ last_location_update_time: Integer,
335
+ last_update_time: Integer,
336
+ occupancy_capacity: Integer,
337
+ occupancy_count: Integer,
338
+ occupancy_status: String,
339
+ phase: String,
340
+ predicted: bool,
341
+ schedule_deviation: Integer,
342
+ service_date: Integer,
343
+ status: String,
344
+ total_distance_along_trip: Float,
345
+ closest_stop_time_offset: Integer,
346
+ frequency: String,
347
+ last_known_location: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Status::LastKnownLocation,
348
+ last_known_orientation: Float,
349
+ next_stop: String,
350
+ next_stop_time_offset: Integer,
351
+ orientation: Float,
352
+ position: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Status::Position,
353
+ scheduled_distance_along_trip: Float,
354
+ situation_ids: ::Array[String],
355
+ vehicle_id: String
356
+ }
357
+
293
358
  type last_known_location = { lat: Float, lon: Float }
294
359
 
295
360
  class LastKnownLocation < OnebusawaySDK::Internal::Type::BaseModel
@@ -302,6 +367,8 @@ module OnebusawaySDK
302
367
  def lon=: (Float) -> Float
303
368
 
304
369
  def initialize: (?lat: Float, ?lon: Float) -> void
370
+
371
+ def to_hash: -> { lat: Float, lon: Float }
305
372
  end
306
373
 
307
374
  type position = { lat: Float, lon: Float }
@@ -316,6 +383,8 @@ module OnebusawaySDK
316
383
  def lon=: (Float) -> Float
317
384
 
318
385
  def initialize: (?lat: Float, ?lon: Float) -> void
386
+
387
+ def to_hash: -> { lat: Float, lon: Float }
319
388
  end
320
389
  end
321
390
  end
@@ -8,6 +8,8 @@ module OnebusawaySDK
8
8
  include OnebusawaySDK::Internal::Type::RequestParameters
9
9
 
10
10
  def initialize: (?request_options: OnebusawaySDK::request_opts) -> void
11
+
12
+ def to_hash: -> { request_options: OnebusawaySDK::RequestOptions }
11
13
  end
12
14
  end
13
15
  end
@@ -14,6 +14,10 @@ module OnebusawaySDK
14
14
  data: OnebusawaySDK::Models::TripRetrieveResponse::Data
15
15
  ) -> void
16
16
 
17
+ def to_hash: -> {
18
+ data: OnebusawaySDK::Models::TripRetrieveResponse::Data
19
+ }
20
+
17
21
  type data =
18
22
  {
19
23
  entry: OnebusawaySDK::Models::TripRetrieveResponse::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::TripRetrieveResponse::Data::Entry,
39
+ references: OnebusawaySDK::References
40
+ }
41
+
33
42
  type entry =
34
43
  {
35
44
  id: String,
@@ -97,6 +106,20 @@ module OnebusawaySDK
97
106
  ?trip_headsign: String,
98
107
  ?trip_short_name: String
99
108
  ) -> void
109
+
110
+ def to_hash: -> {
111
+ id: String,
112
+ route_id: String,
113
+ service_id: String,
114
+ block_id: String,
115
+ direction_id: String,
116
+ peak_offpeak: Integer,
117
+ route_short_name: String,
118
+ shape_id: String,
119
+ time_zone: String,
120
+ trip_headsign: String,
121
+ trip_short_name: String
122
+ }
100
123
  end
101
124
  end
102
125
  end
@@ -46,6 +46,17 @@ module OnebusawaySDK
46
46
  ?time: Integer,
47
47
  ?request_options: OnebusawaySDK::request_opts
48
48
  ) -> void
49
+
50
+ def to_hash: -> {
51
+ lat: Float,
52
+ lat_span: Float,
53
+ lon: Float,
54
+ lon_span: Float,
55
+ include_schedule: bool,
56
+ include_trip: bool,
57
+ time: Integer,
58
+ request_options: OnebusawaySDK::RequestOptions
59
+ }
49
60
  end
50
61
  end
51
62
  end
@@ -14,6 +14,10 @@ module OnebusawaySDK
14
14
  data: OnebusawaySDK::Models::TripsForLocationListResponse::Data
15
15
  ) -> void
16
16
 
17
+ def to_hash: -> {
18
+ data: OnebusawaySDK::Models::TripsForLocationListResponse::Data
19
+ }
20
+
17
21
  type data =
18
22
  {
19
23
  limit_exceeded: bool,
@@ -40,6 +44,13 @@ module OnebusawaySDK
40
44
  ?out_of_range: bool
41
45
  ) -> void
42
46
 
47
+ def to_hash: -> {
48
+ limit_exceeded: bool,
49
+ list: ::Array[OnebusawaySDK::Models::TripsForLocationListResponse::Data::List],
50
+ references: OnebusawaySDK::References,
51
+ out_of_range: bool
52
+ }
53
+
43
54
  type list =
44
55
  {
45
56
  schedule: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule,
@@ -76,6 +87,15 @@ module OnebusawaySDK
76
87
  ?situation_ids: ::Array[String]
77
88
  ) -> void
78
89
 
90
+ def to_hash: -> {
91
+ schedule: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule,
92
+ status: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Status,
93
+ trip_id: String,
94
+ frequency: String?,
95
+ service_date: Integer,
96
+ situation_ids: ::Array[String]
97
+ }
98
+
79
99
  type schedule =
80
100
  {
81
101
  next_trip_id: String,
@@ -104,6 +124,14 @@ module OnebusawaySDK
104
124
  ?frequency: String?
105
125
  ) -> void
106
126
 
127
+ def to_hash: -> {
128
+ next_trip_id: String,
129
+ previous_trip_id: String,
130
+ stop_times: ::Array[OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule::StopTime],
131
+ time_zone: String,
132
+ frequency: String?
133
+ }
134
+
107
135
  type stop_time =
108
136
  {
109
137
  arrival_time: Integer,
@@ -147,6 +175,15 @@ module OnebusawaySDK
147
175
  ?stop_headsign: String,
148
176
  ?stop_id: String
149
177
  ) -> void
178
+
179
+ def to_hash: -> {
180
+ arrival_time: Integer,
181
+ departure_time: Integer,
182
+ distance_along_trip: Float,
183
+ historical_occupancy: String,
184
+ stop_headsign: String,
185
+ stop_id: String
186
+ }
150
187
  end
151
188
  end
152
189
 
@@ -292,6 +329,36 @@ module OnebusawaySDK
292
329
  ?vehicle_id: String
293
330
  ) -> void
294
331
 
332
+ def to_hash: -> {
333
+ active_trip_id: String,
334
+ block_trip_sequence: Integer,
335
+ closest_stop: String,
336
+ distance_along_trip: Float,
337
+ last_known_distance_along_trip: Float,
338
+ last_location_update_time: Integer,
339
+ last_update_time: Integer,
340
+ occupancy_capacity: Integer,
341
+ occupancy_count: Integer,
342
+ occupancy_status: String,
343
+ phase: String,
344
+ predicted: bool,
345
+ schedule_deviation: Integer,
346
+ service_date: Integer,
347
+ status: String,
348
+ total_distance_along_trip: Float,
349
+ closest_stop_time_offset: Integer,
350
+ frequency: String,
351
+ last_known_location: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Status::LastKnownLocation,
352
+ last_known_orientation: Float,
353
+ next_stop: String,
354
+ next_stop_time_offset: Integer,
355
+ orientation: Float,
356
+ position: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Status::Position,
357
+ scheduled_distance_along_trip: Float,
358
+ situation_ids: ::Array[String],
359
+ vehicle_id: String
360
+ }
361
+
295
362
  type last_known_location = { lat: Float, lon: Float }
296
363
 
297
364
  class LastKnownLocation < OnebusawaySDK::Internal::Type::BaseModel
@@ -304,6 +371,8 @@ module OnebusawaySDK
304
371
  def lon=: (Float) -> Float
305
372
 
306
373
  def initialize: (?lat: Float, ?lon: Float) -> void
374
+
375
+ def to_hash: -> { lat: Float, lon: Float }
307
376
  end
308
377
 
309
378
  type position = { lat: Float, lon: Float }
@@ -318,6 +387,8 @@ module OnebusawaySDK
318
387
  def lon=: (Float) -> Float
319
388
 
320
389
  def initialize: (?lat: Float, ?lon: Float) -> void
390
+
391
+ def to_hash: -> { lat: Float, lon: Float }
321
392
  end
322
393
  end
323
394
  end
@@ -26,6 +26,13 @@ module OnebusawaySDK
26
26
  ?time: Integer,
27
27
  ?request_options: OnebusawaySDK::request_opts
28
28
  ) -> void
29
+
30
+ def to_hash: -> {
31
+ include_schedule: bool,
32
+ include_status: bool,
33
+ time: Integer,
34
+ request_options: OnebusawaySDK::RequestOptions
35
+ }
29
36
  end
30
37
  end
31
38
  end
@@ -14,6 +14,10 @@ module OnebusawaySDK
14
14
  data: OnebusawaySDK::Models::TripsForRouteListResponse::Data
15
15
  ) -> void
16
16
 
17
+ def to_hash: -> {
18
+ data: OnebusawaySDK::Models::TripsForRouteListResponse::Data
19
+ }
20
+
17
21
  type data =
18
22
  {
19
23
  limit_exceeded: bool,
@@ -34,6 +38,12 @@ module OnebusawaySDK
34
38
  references: OnebusawaySDK::References
35
39
  ) -> void
36
40
 
41
+ def to_hash: -> {
42
+ limit_exceeded: bool,
43
+ list: ::Array[OnebusawaySDK::Models::TripsForRouteListResponse::Data::List],
44
+ references: OnebusawaySDK::References
45
+ }
46
+
37
47
  type list =
38
48
  {
39
49
  schedule: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule,
@@ -70,6 +80,15 @@ module OnebusawaySDK
70
80
  ?situation_ids: ::Array[String]
71
81
  ) -> void
72
82
 
83
+ def to_hash: -> {
84
+ schedule: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule,
85
+ status: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Status,
86
+ trip_id: String,
87
+ frequency: String?,
88
+ service_date: Integer,
89
+ situation_ids: ::Array[String]
90
+ }
91
+
73
92
  type schedule =
74
93
  {
75
94
  next_trip_id: String,
@@ -98,6 +117,14 @@ module OnebusawaySDK
98
117
  ?frequency: String?
99
118
  ) -> void
100
119
 
120
+ def to_hash: -> {
121
+ next_trip_id: String,
122
+ previous_trip_id: String,
123
+ stop_times: ::Array[OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule::StopTime],
124
+ time_zone: String,
125
+ frequency: String?
126
+ }
127
+
101
128
  type stop_time =
102
129
  {
103
130
  arrival_time: Integer,
@@ -141,6 +168,15 @@ module OnebusawaySDK
141
168
  ?stop_headsign: String,
142
169
  ?stop_id: String
143
170
  ) -> void
171
+
172
+ def to_hash: -> {
173
+ arrival_time: Integer,
174
+ departure_time: Integer,
175
+ distance_along_trip: Float,
176
+ historical_occupancy: String,
177
+ stop_headsign: String,
178
+ stop_id: String
179
+ }
144
180
  end
145
181
  end
146
182
 
@@ -286,6 +322,36 @@ module OnebusawaySDK
286
322
  ?vehicle_id: String
287
323
  ) -> void
288
324
 
325
+ def to_hash: -> {
326
+ active_trip_id: String,
327
+ block_trip_sequence: Integer,
328
+ closest_stop: String,
329
+ distance_along_trip: Float,
330
+ last_known_distance_along_trip: Float,
331
+ last_location_update_time: Integer,
332
+ last_update_time: Integer,
333
+ occupancy_capacity: Integer,
334
+ occupancy_count: Integer,
335
+ occupancy_status: String,
336
+ phase: String,
337
+ predicted: bool,
338
+ schedule_deviation: Integer,
339
+ service_date: Integer,
340
+ status: String,
341
+ total_distance_along_trip: Float,
342
+ closest_stop_time_offset: Integer,
343
+ frequency: String,
344
+ last_known_location: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Status::LastKnownLocation,
345
+ last_known_orientation: Float,
346
+ next_stop: String,
347
+ next_stop_time_offset: Integer,
348
+ orientation: Float,
349
+ position: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Status::Position,
350
+ scheduled_distance_along_trip: Float,
351
+ situation_ids: ::Array[String],
352
+ vehicle_id: String
353
+ }
354
+
289
355
  type last_known_location = { lat: Float, lon: Float }
290
356
 
291
357
  class LastKnownLocation < OnebusawaySDK::Internal::Type::BaseModel
@@ -298,6 +364,8 @@ module OnebusawaySDK
298
364
  def lon=: (Float) -> Float
299
365
 
300
366
  def initialize: (?lat: Float, ?lon: Float) -> void
367
+
368
+ def to_hash: -> { lat: Float, lon: Float }
301
369
  end
302
370
 
303
371
  type position = { lat: Float, lon: Float }
@@ -312,6 +380,8 @@ module OnebusawaySDK
312
380
  def lon=: (Float) -> Float
313
381
 
314
382
  def initialize: (?lat: Float, ?lon: Float) -> void
383
+
384
+ def to_hash: -> { lat: Float, lon: Float }
315
385
  end
316
386
  end
317
387
  end
@@ -15,6 +15,11 @@ module OnebusawaySDK
15
15
  ?time: String,
16
16
  ?request_options: OnebusawaySDK::request_opts
17
17
  ) -> void
18
+
19
+ def to_hash: -> {
20
+ time: String,
21
+ request_options: OnebusawaySDK::RequestOptions
22
+ }
18
23
  end
19
24
  end
20
25
  end
@@ -14,6 +14,10 @@ module OnebusawaySDK
14
14
  data: OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data
15
15
  ) -> void
16
16
 
17
+ def to_hash: -> {
18
+ data: OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data
19
+ }
20
+
17
21
  type data =
18
22
  {
19
23
  limit_exceeded: bool,
@@ -34,6 +38,12 @@ module OnebusawaySDK
34
38
  references: OnebusawaySDK::References
35
39
  ) -> void
36
40
 
41
+ def to_hash: -> {
42
+ limit_exceeded: bool,
43
+ list: ::Array[OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List],
44
+ references: OnebusawaySDK::References
45
+ }
46
+
37
47
  type list =
38
48
  {
39
49
  last_location_update_time: Integer,
@@ -96,6 +106,20 @@ module OnebusawaySDK
96
106
  ?status: String
97
107
  ) -> void
98
108
 
109
+ def to_hash: -> {
110
+ last_location_update_time: Integer,
111
+ last_update_time: Integer,
112
+ location: OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::Location,
113
+ trip_id: String,
114
+ trip_status: OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus,
115
+ vehicle_id: String,
116
+ occupancy_capacity: Integer,
117
+ occupancy_count: Integer,
118
+ occupancy_status: String,
119
+ phase: String,
120
+ status: String
121
+ }
122
+
99
123
  type location = { lat: Float, lon: Float }
100
124
 
101
125
  class Location < OnebusawaySDK::Internal::Type::BaseModel
@@ -108,6 +132,8 @@ module OnebusawaySDK
108
132
  def lon=: (Float) -> Float
109
133
 
110
134
  def initialize: (?lat: Float, ?lon: Float) -> void
135
+
136
+ def to_hash: -> { lat: Float, lon: Float }
111
137
  end
112
138
 
113
139
  type trip_status =
@@ -252,6 +278,36 @@ module OnebusawaySDK
252
278
  ?vehicle_id: String
253
279
  ) -> void
254
280
 
281
+ def to_hash: -> {
282
+ active_trip_id: String,
283
+ block_trip_sequence: Integer,
284
+ closest_stop: String,
285
+ distance_along_trip: Float,
286
+ last_known_distance_along_trip: Float,
287
+ last_location_update_time: Integer,
288
+ last_update_time: Integer,
289
+ occupancy_capacity: Integer,
290
+ occupancy_count: Integer,
291
+ occupancy_status: String,
292
+ phase: String,
293
+ predicted: bool,
294
+ schedule_deviation: Integer,
295
+ service_date: Integer,
296
+ status: String,
297
+ total_distance_along_trip: Float,
298
+ closest_stop_time_offset: Integer,
299
+ frequency: String,
300
+ last_known_location: OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus::LastKnownLocation,
301
+ last_known_orientation: Float,
302
+ next_stop: String,
303
+ next_stop_time_offset: Integer,
304
+ orientation: Float,
305
+ position: OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus::Position,
306
+ scheduled_distance_along_trip: Float,
307
+ situation_ids: ::Array[String],
308
+ vehicle_id: String
309
+ }
310
+
255
311
  type last_known_location = { lat: Float, lon: Float }
256
312
 
257
313
  class LastKnownLocation < OnebusawaySDK::Internal::Type::BaseModel
@@ -264,6 +320,8 @@ module OnebusawaySDK
264
320
  def lon=: (Float) -> Float
265
321
 
266
322
  def initialize: (?lat: Float, ?lon: Float) -> void
323
+
324
+ def to_hash: -> { lat: Float, lon: Float }
267
325
  end
268
326
 
269
327
  type position = { lat: Float, lon: Float }
@@ -278,6 +336,8 @@ module OnebusawaySDK
278
336
  def lon=: (Float) -> Float
279
337
 
280
338
  def initialize: (?lat: Float, ?lon: Float) -> void
339
+
340
+ def to_hash: -> { lat: Float, lon: Float }
281
341
  end
282
342
  end
283
343
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onebusaway-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Onebusaway SDK
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-20 00:00:00.000000000 Z
11
+ date: 2025-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool