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
@@ -32,6 +32,15 @@ module OnebusawaySDK
32
32
  trips: ::Array[OnebusawaySDK::References::Trip]
33
33
  ) -> void
34
34
 
35
+ def to_hash: -> {
36
+ agencies: ::Array[OnebusawaySDK::References::Agency],
37
+ routes: ::Array[OnebusawaySDK::References::Route],
38
+ situations: ::Array[OnebusawaySDK::References::Situation],
39
+ stops: ::Array[OnebusawaySDK::References::Stop],
40
+ stop_times: ::Array[OnebusawaySDK::References::StopTime],
41
+ trips: ::Array[OnebusawaySDK::References::Trip]
42
+ }
43
+
35
44
  type agency =
36
45
  {
37
46
  id: String,
@@ -91,6 +100,19 @@ module OnebusawaySDK
91
100
  ?phone: String,
92
101
  ?private_service: bool
93
102
  ) -> void
103
+
104
+ def to_hash: -> {
105
+ id: String,
106
+ name: String,
107
+ timezone: String,
108
+ url: String,
109
+ disclaimer: String,
110
+ email: String,
111
+ fare_url: String,
112
+ lang: String,
113
+ phone: String,
114
+ private_service: bool
115
+ }
94
116
  end
95
117
 
96
118
  type route =
@@ -154,6 +176,19 @@ module OnebusawaySDK
154
176
  ?text_color: String,
155
177
  ?url: String
156
178
  ) -> void
179
+
180
+ def to_hash: -> {
181
+ id: String,
182
+ agency_id: String,
183
+ type: Integer,
184
+ color: String,
185
+ description: String,
186
+ long_name: String,
187
+ null_safe_short_name: String,
188
+ short_name: String,
189
+ text_color: String,
190
+ url: String
191
+ }
157
192
  end
158
193
 
159
194
  type situation =
@@ -166,7 +201,7 @@ module OnebusawaySDK
166
201
  consequences: ::Array[OnebusawaySDK::References::Situation::Consequence],
167
202
  description: OnebusawaySDK::References::Situation::Description,
168
203
  publication_windows: ::Array[OnebusawaySDK::References::Situation::PublicationWindow],
169
- reason: OnebusawaySDK::References::Situation::reason,
204
+ reason: OnebusawaySDK::Models::References::Situation::reason,
170
205
  severity: String,
171
206
  summary: OnebusawaySDK::References::Situation::Summary,
172
207
  url: OnebusawaySDK::References::Situation::URL
@@ -211,11 +246,11 @@ module OnebusawaySDK
211
246
  ::Array[OnebusawaySDK::References::Situation::PublicationWindow]
212
247
  ) -> ::Array[OnebusawaySDK::References::Situation::PublicationWindow]
213
248
 
214
- attr_reader reason: OnebusawaySDK::References::Situation::reason?
249
+ attr_reader reason: OnebusawaySDK::Models::References::Situation::reason?
215
250
 
216
251
  def reason=: (
217
- OnebusawaySDK::References::Situation::reason
218
- ) -> OnebusawaySDK::References::Situation::reason
252
+ OnebusawaySDK::Models::References::Situation::reason
253
+ ) -> OnebusawaySDK::Models::References::Situation::reason
219
254
 
220
255
  attr_reader severity: String?
221
256
 
@@ -242,12 +277,27 @@ module OnebusawaySDK
242
277
  ?consequences: ::Array[OnebusawaySDK::References::Situation::Consequence],
243
278
  ?description: OnebusawaySDK::References::Situation::Description,
244
279
  ?publication_windows: ::Array[OnebusawaySDK::References::Situation::PublicationWindow],
245
- ?reason: OnebusawaySDK::References::Situation::reason,
280
+ ?reason: OnebusawaySDK::Models::References::Situation::reason,
246
281
  ?severity: String,
247
282
  ?summary: OnebusawaySDK::References::Situation::Summary,
248
283
  ?url: OnebusawaySDK::References::Situation::URL
249
284
  ) -> void
250
285
 
286
+ def to_hash: -> {
287
+ id: String,
288
+ creation_time: Integer,
289
+ active_windows: ::Array[OnebusawaySDK::References::Situation::ActiveWindow],
290
+ all_affects: ::Array[OnebusawaySDK::References::Situation::AllAffect],
291
+ consequence_message: String,
292
+ consequences: ::Array[OnebusawaySDK::References::Situation::Consequence],
293
+ description: OnebusawaySDK::References::Situation::Description,
294
+ publication_windows: ::Array[OnebusawaySDK::References::Situation::PublicationWindow],
295
+ reason: OnebusawaySDK::Models::References::Situation::reason,
296
+ severity: String,
297
+ summary: OnebusawaySDK::References::Situation::Summary,
298
+ url: OnebusawaySDK::References::Situation::URL
299
+ }
300
+
251
301
  type active_window = { from: Integer, to: Integer }
252
302
 
253
303
  class ActiveWindow < OnebusawaySDK::Internal::Type::BaseModel
@@ -260,6 +310,8 @@ module OnebusawaySDK
260
310
  def to=: (Integer) -> Integer
261
311
 
262
312
  def initialize: (?from: Integer, ?to: Integer) -> void
313
+
314
+ def to_hash: -> { from: Integer, to: Integer }
263
315
  end
264
316
 
265
317
  type all_affect =
@@ -305,6 +357,15 @@ module OnebusawaySDK
305
357
  ?stop_id: String,
306
358
  ?trip_id: String
307
359
  ) -> void
360
+
361
+ def to_hash: -> {
362
+ agency_id: String,
363
+ application_id: String,
364
+ direction_id: String,
365
+ route_id: String,
366
+ stop_id: String,
367
+ trip_id: String
368
+ }
308
369
  end
309
370
 
310
371
  type consequence =
@@ -329,6 +390,11 @@ module OnebusawaySDK
329
390
  ?condition_details: OnebusawaySDK::References::Situation::Consequence::ConditionDetails
330
391
  ) -> void
331
392
 
393
+ def to_hash: -> {
394
+ condition: String,
395
+ condition_details: OnebusawaySDK::References::Situation::Consequence::ConditionDetails
396
+ }
397
+
332
398
  type condition_details =
333
399
  {
334
400
  diversion_path: OnebusawaySDK::References::Situation::Consequence::ConditionDetails::DiversionPath,
@@ -351,6 +417,11 @@ module OnebusawaySDK
351
417
  ?diversion_stop_ids: ::Array[String]
352
418
  ) -> void
353
419
 
420
+ def to_hash: -> {
421
+ diversion_path: OnebusawaySDK::References::Situation::Consequence::ConditionDetails::DiversionPath,
422
+ diversion_stop_ids: ::Array[String]
423
+ }
424
+
354
425
  type diversion_path =
355
426
  { length: Integer, levels: String, points: String }
356
427
 
@@ -372,6 +443,12 @@ module OnebusawaySDK
372
443
  ?levels: String,
373
444
  ?points: String
374
445
  ) -> void
446
+
447
+ def to_hash: -> {
448
+ length: Integer,
449
+ levels: String,
450
+ points: String
451
+ }
375
452
  end
376
453
  end
377
454
  end
@@ -388,6 +465,8 @@ module OnebusawaySDK
388
465
  def value=: (String) -> String
389
466
 
390
467
  def initialize: (?lang: String, ?value: String) -> void
468
+
469
+ def to_hash: -> { lang: String, value: String }
391
470
  end
392
471
 
393
472
  type publication_window = { from: Integer, to: Integer }
@@ -398,6 +477,8 @@ module OnebusawaySDK
398
477
  attr_accessor to: Integer
399
478
 
400
479
  def initialize: (from: Integer, to: Integer) -> void
480
+
481
+ def to_hash: -> { from: Integer, to: Integer }
401
482
  end
402
483
 
403
484
  type reason =
@@ -416,7 +497,7 @@ module OnebusawaySDK
416
497
  MISCELLANEOUS_REASON: :miscellaneousReason
417
498
  SECURITY_ALERT: :securityAlert
418
499
 
419
- def self?.values: -> ::Array[OnebusawaySDK::References::Situation::reason]
500
+ def self?.values: -> ::Array[OnebusawaySDK::Models::References::Situation::reason]
420
501
  end
421
502
 
422
503
  type summary = { lang: String, value: String }
@@ -431,6 +512,8 @@ module OnebusawaySDK
431
512
  def value=: (String) -> String
432
513
 
433
514
  def initialize: (?lang: String, ?value: String) -> void
515
+
516
+ def to_hash: -> { lang: String, value: String }
434
517
  end
435
518
 
436
519
  type url = { lang: String, value: String }
@@ -445,6 +528,8 @@ module OnebusawaySDK
445
528
  def value=: (String) -> String
446
529
 
447
530
  def initialize: (?lang: String, ?value: String) -> void
531
+
532
+ def to_hash: -> { lang: String, value: String }
448
533
  end
449
534
  end
450
535
 
@@ -505,6 +590,20 @@ module OnebusawaySDK
505
590
  ?direction: String,
506
591
  ?wheelchair_boarding: String
507
592
  ) -> void
593
+
594
+ def to_hash: -> {
595
+ id: String,
596
+ lat: Float,
597
+ location_type: Integer,
598
+ lon: Float,
599
+ name: String,
600
+ parent: String,
601
+ route_ids: ::Array[String],
602
+ static_route_ids: ::Array[String],
603
+ code: String,
604
+ direction: String,
605
+ wheelchair_boarding: String
606
+ }
508
607
  end
509
608
 
510
609
  type stop_time =
@@ -550,6 +649,15 @@ module OnebusawaySDK
550
649
  ?stop_headsign: String,
551
650
  ?stop_id: String
552
651
  ) -> void
652
+
653
+ def to_hash: -> {
654
+ arrival_time: Integer,
655
+ departure_time: Integer,
656
+ distance_along_trip: Float,
657
+ historical_occupancy: String,
658
+ stop_headsign: String,
659
+ stop_id: String
660
+ }
553
661
  end
554
662
 
555
663
  type trip =
@@ -619,6 +727,20 @@ module OnebusawaySDK
619
727
  ?trip_headsign: String,
620
728
  ?trip_short_name: String
621
729
  ) -> void
730
+
731
+ def to_hash: -> {
732
+ id: String,
733
+ route_id: String,
734
+ service_id: String,
735
+ block_id: String,
736
+ direction_id: String,
737
+ peak_offpeak: Integer,
738
+ route_short_name: String,
739
+ shape_id: String,
740
+ time_zone: String,
741
+ trip_headsign: String,
742
+ trip_short_name: String
743
+ }
622
744
  end
623
745
  end
624
746
  end
@@ -45,6 +45,15 @@ module OnebusawaySDK
45
45
  ?request_options: OnebusawaySDK::request_opts
46
46
  ) -> void
47
47
 
48
+ def to_hash: -> {
49
+ code: OnebusawaySDK::Models::ReportProblemWithStopRetrieveParams::code,
50
+ user_comment: String,
51
+ user_lat: Float,
52
+ user_location_accuracy: Float,
53
+ user_lon: Float,
54
+ request_options: OnebusawaySDK::RequestOptions
55
+ }
56
+
48
57
  type code =
49
58
  :stop_name_wrong
50
59
  | :stop_number_wrong
@@ -75,6 +75,20 @@ module OnebusawaySDK
75
75
  ?request_options: OnebusawaySDK::request_opts
76
76
  ) -> void
77
77
 
78
+ def to_hash: -> {
79
+ code: OnebusawaySDK::Models::ReportProblemWithTripRetrieveParams::code,
80
+ service_date: Integer,
81
+ stop_id: String,
82
+ user_comment: String,
83
+ user_lat: Float,
84
+ user_location_accuracy: Float,
85
+ user_lon: Float,
86
+ user_on_vehicle: bool,
87
+ user_vehicle_number: String,
88
+ vehicle_id: String,
89
+ request_options: OnebusawaySDK::RequestOptions
90
+ }
91
+
78
92
  type code =
79
93
  :vehicle_never_came
80
94
  | :vehicle_came_early
@@ -18,6 +18,13 @@ module OnebusawaySDK
18
18
  text: String,
19
19
  version: Integer
20
20
  ) -> void
21
+
22
+ def to_hash: -> {
23
+ code: Integer,
24
+ current_time: Integer,
25
+ text: String,
26
+ version: Integer
27
+ }
21
28
  end
22
29
  end
23
30
  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::RouteIDsForAgencyListResponse::Data
15
15
  ) -> void
16
16
 
17
+ def to_hash: -> {
18
+ data: OnebusawaySDK::Models::RouteIDsForAgencyListResponse::Data
19
+ }
20
+
17
21
  type data =
18
22
  {
19
23
  limit_exceeded: bool,
@@ -33,6 +37,12 @@ module OnebusawaySDK
33
37
  list: ::Array[String],
34
38
  references: OnebusawaySDK::References
35
39
  ) -> void
40
+
41
+ def to_hash: -> {
42
+ limit_exceeded: bool,
43
+ list: ::Array[String],
44
+ references: OnebusawaySDK::References
45
+ }
36
46
  end
37
47
  end
38
48
  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::RouteRetrieveResponse::Data
15
15
  ) -> void
16
16
 
17
+ def to_hash: -> {
18
+ data: OnebusawaySDK::Models::RouteRetrieveResponse::Data
19
+ }
20
+
17
21
  type data =
18
22
  {
19
23
  entry: OnebusawaySDK::Models::RouteRetrieveResponse::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::RouteRetrieveResponse::Data::Entry,
39
+ references: OnebusawaySDK::References
40
+ }
41
+
33
42
  type entry =
34
43
  {
35
44
  id: String,
@@ -91,6 +100,19 @@ module OnebusawaySDK
91
100
  ?text_color: String,
92
101
  ?url: String
93
102
  ) -> void
103
+
104
+ def to_hash: -> {
105
+ id: String,
106
+ agency_id: String,
107
+ type: Integer,
108
+ color: String,
109
+ description: String,
110
+ long_name: String,
111
+ null_safe_short_name: String,
112
+ short_name: String,
113
+ text_color: String,
114
+ url: String
115
+ }
94
116
  end
95
117
  end
96
118
  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::RoutesForAgencyListResponse::Data
15
15
  ) -> void
16
16
 
17
+ def to_hash: -> {
18
+ data: OnebusawaySDK::Models::RoutesForAgencyListResponse::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::RoutesForAgencyListResponse::Data::List],
44
+ references: OnebusawaySDK::References
45
+ }
46
+
37
47
  type list =
38
48
  {
39
49
  id: String,
@@ -95,6 +105,19 @@ module OnebusawaySDK
95
105
  ?text_color: String,
96
106
  ?url: String
97
107
  ) -> void
108
+
109
+ def to_hash: -> {
110
+ id: String,
111
+ agency_id: String,
112
+ type: Integer,
113
+ color: String,
114
+ description: String,
115
+ long_name: String,
116
+ null_safe_short_name: String,
117
+ short_name: String,
118
+ text_color: String,
119
+ url: String
120
+ }
98
121
  end
99
122
  end
100
123
  end
@@ -44,6 +44,16 @@ module OnebusawaySDK
44
44
  ?radius: Float,
45
45
  ?request_options: OnebusawaySDK::request_opts
46
46
  ) -> void
47
+
48
+ def to_hash: -> {
49
+ lat: Float,
50
+ lon: Float,
51
+ lat_span: Float,
52
+ lon_span: Float,
53
+ query: String,
54
+ radius: Float,
55
+ request_options: OnebusawaySDK::RequestOptions
56
+ }
47
57
  end
48
58
  end
49
59
  end
@@ -14,6 +14,10 @@ module OnebusawaySDK
14
14
  data: OnebusawaySDK::Models::RoutesForLocationListResponse::Data
15
15
  ) -> void
16
16
 
17
+ def to_hash: -> {
18
+ data: OnebusawaySDK::Models::RoutesForLocationListResponse::Data
19
+ }
20
+
17
21
  type data =
18
22
  {
19
23
  limit_exceeded: bool,
@@ -38,6 +42,13 @@ module OnebusawaySDK
38
42
  references: OnebusawaySDK::References
39
43
  ) -> void
40
44
 
45
+ def to_hash: -> {
46
+ limit_exceeded: bool,
47
+ list: ::Array[OnebusawaySDK::Models::RoutesForLocationListResponse::Data::List],
48
+ out_of_range: bool,
49
+ references: OnebusawaySDK::References
50
+ }
51
+
41
52
  type list =
42
53
  {
43
54
  id: String,
@@ -99,6 +110,19 @@ module OnebusawaySDK
99
110
  ?text_color: String,
100
111
  ?url: String
101
112
  ) -> void
113
+
114
+ def to_hash: -> {
115
+ id: String,
116
+ agency_id: String,
117
+ type: Integer,
118
+ color: String,
119
+ description: String,
120
+ long_name: String,
121
+ null_safe_short_name: String,
122
+ short_name: String,
123
+ text_color: String,
124
+ url: String
125
+ }
102
126
  end
103
127
  end
104
128
  end
@@ -15,6 +15,11 @@ module OnebusawaySDK
15
15
  ?date: Date,
16
16
  ?request_options: OnebusawaySDK::request_opts
17
17
  ) -> void
18
+
19
+ def to_hash: -> {
20
+ date: Date,
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::ScheduleForRouteRetrieveResponse::Data
15
15
  ) -> void
16
16
 
17
+ def to_hash: -> {
18
+ data: OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data
19
+ }
20
+
17
21
  type data =
18
22
  {
19
23
  entry: OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry
@@ -26,6 +30,10 @@ module OnebusawaySDK
26
30
  entry: OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry
27
31
  ) -> void
28
32
 
33
+ def to_hash: -> {
34
+ entry: OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry
35
+ }
36
+
29
37
  type entry =
30
38
  {
31
39
  route_id: String,
@@ -58,6 +66,15 @@ module OnebusawaySDK
58
66
  trips: ::Array[OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::Trip]
59
67
  ) -> void
60
68
 
69
+ def to_hash: -> {
70
+ route_id: String,
71
+ schedule_date: Integer,
72
+ service_ids: ::Array[String],
73
+ stops: ::Array[OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::Stop],
74
+ stop_trip_groupings: ::Array[OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping],
75
+ trips: ::Array[OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::Trip]
76
+ }
77
+
61
78
  type stop =
62
79
  {
63
80
  id: String,
@@ -115,6 +132,20 @@ module OnebusawaySDK
115
132
  ?direction: String,
116
133
  ?wheelchair_boarding: String
117
134
  ) -> void
135
+
136
+ def to_hash: -> {
137
+ id: String,
138
+ lat: Float,
139
+ location_type: Integer,
140
+ lon: Float,
141
+ name: String,
142
+ parent: String,
143
+ route_ids: ::Array[String],
144
+ static_route_ids: ::Array[String],
145
+ code: String,
146
+ direction: String,
147
+ wheelchair_boarding: String
148
+ }
118
149
  end
119
150
 
120
151
  type stop_trip_grouping =
@@ -149,6 +180,14 @@ module OnebusawaySDK
149
180
  ?trips_with_stop_times: ::Array[OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping::TripsWithStopTime]
150
181
  ) -> void
151
182
 
183
+ def to_hash: -> {
184
+ direction_id: String,
185
+ stop_ids: ::Array[String],
186
+ trip_headsigns: ::Array[String],
187
+ trip_ids: ::Array[String],
188
+ trips_with_stop_times: ::Array[OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping::TripsWithStopTime]
189
+ }
190
+
152
191
  type trips_with_stop_time =
153
192
  {
154
193
  stop_times: ::Array[OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping::TripsWithStopTime::StopTime],
@@ -165,6 +204,11 @@ module OnebusawaySDK
165
204
  trip_id: String
166
205
  ) -> void
167
206
 
207
+ def to_hash: -> {
208
+ stop_times: ::Array[OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping::TripsWithStopTime::StopTime],
209
+ trip_id: String
210
+ }
211
+
168
212
  type stop_time =
169
213
  {
170
214
  arrival_enabled: bool,
@@ -208,6 +252,17 @@ module OnebusawaySDK
208
252
  ?service_id: String,
209
253
  ?stop_headsign: String
210
254
  ) -> void
255
+
256
+ def to_hash: -> {
257
+ arrival_enabled: bool,
258
+ arrival_time: Integer,
259
+ departure_enabled: bool,
260
+ departure_time: Integer,
261
+ stop_id: String,
262
+ trip_id: String,
263
+ service_id: String,
264
+ stop_headsign: String
265
+ }
211
266
  end
212
267
  end
213
268
  end
@@ -279,6 +334,20 @@ module OnebusawaySDK
279
334
  ?trip_headsign: String,
280
335
  ?trip_short_name: String
281
336
  ) -> void
337
+
338
+ def to_hash: -> {
339
+ id: String,
340
+ route_id: String,
341
+ service_id: String,
342
+ block_id: String,
343
+ direction_id: String,
344
+ peak_offpeak: Integer,
345
+ route_short_name: String,
346
+ shape_id: String,
347
+ time_zone: String,
348
+ trip_headsign: String,
349
+ trip_short_name: String
350
+ }
282
351
  end
283
352
  end
284
353
  end
@@ -15,6 +15,11 @@ module OnebusawaySDK
15
15
  ?date: Date,
16
16
  ?request_options: OnebusawaySDK::request_opts
17
17
  ) -> void
18
+
19
+ def to_hash: -> {
20
+ date: Date,
21
+ request_options: OnebusawaySDK::RequestOptions
22
+ }
18
23
  end
19
24
  end
20
25
  end