onebusaway-sdk 1.0.1 → 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 +28 -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
@@ -14,6 +14,10 @@ module OnebusawaySDK
14
14
  data: OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data
15
15
  ) -> void
16
16
 
17
+ def to_hash: -> {
18
+ data: OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data
19
+ }
20
+
17
21
  type data =
18
22
  {
19
23
  entry: OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::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::ScheduleForStopRetrieveResponse::Data::Entry,
39
+ references: OnebusawaySDK::References
40
+ }
41
+
33
42
  type entry =
34
43
  {
35
44
  date: Integer,
@@ -50,6 +59,12 @@ module OnebusawaySDK
50
59
  stop_route_schedules: ::Array[OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule]
51
60
  ) -> void
52
61
 
62
+ def to_hash: -> {
63
+ date: Integer,
64
+ stop_id: String,
65
+ stop_route_schedules: ::Array[OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule]
66
+ }
67
+
53
68
  type stop_route_schedule =
54
69
  {
55
70
  route_id: String,
@@ -66,6 +81,11 @@ module OnebusawaySDK
66
81
  stop_route_direction_schedules: ::Array[OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule]
67
82
  ) -> void
68
83
 
84
+ def to_hash: -> {
85
+ route_id: String,
86
+ stop_route_direction_schedules: ::Array[OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule]
87
+ }
88
+
69
89
  type stop_route_direction_schedule =
70
90
  {
71
91
  schedule_stop_times: ::Array[OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule::ScheduleStopTime],
@@ -90,6 +110,12 @@ module OnebusawaySDK
90
110
  ?schedule_frequencies: ::Array[OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule::ScheduleFrequency]
91
111
  ) -> void
92
112
 
113
+ def to_hash: -> {
114
+ schedule_stop_times: ::Array[OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule::ScheduleStopTime],
115
+ trip_headsign: String,
116
+ schedule_frequencies: ::Array[OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule::ScheduleFrequency]
117
+ }
118
+
93
119
  type schedule_stop_time =
94
120
  {
95
121
  arrival_enabled: bool,
@@ -127,6 +153,16 @@ module OnebusawaySDK
127
153
  trip_id: String,
128
154
  ?stop_headsign: String
129
155
  ) -> void
156
+
157
+ def to_hash: -> {
158
+ arrival_enabled: bool,
159
+ arrival_time: Integer,
160
+ departure_enabled: bool,
161
+ departure_time: Integer,
162
+ service_id: String,
163
+ trip_id: String,
164
+ stop_headsign: String
165
+ }
130
166
  end
131
167
 
132
168
  type schedule_frequency =
@@ -160,6 +196,15 @@ module OnebusawaySDK
160
196
  start_time: Integer,
161
197
  trip_id: String
162
198
  ) -> void
199
+
200
+ def to_hash: -> {
201
+ end_time: Integer,
202
+ headway: Integer,
203
+ service_date: Integer,
204
+ service_id: String,
205
+ start_time: Integer,
206
+ trip_id: String
207
+ }
163
208
  end
164
209
  end
165
210
  end
@@ -19,6 +19,12 @@ module OnebusawaySDK
19
19
  ?max_count: Integer,
20
20
  ?request_options: OnebusawaySDK::request_opts
21
21
  ) -> void
22
+
23
+ def to_hash: -> {
24
+ input: String,
25
+ max_count: Integer,
26
+ request_options: OnebusawaySDK::RequestOptions
27
+ }
22
28
  end
23
29
  end
24
30
  end
@@ -14,6 +14,10 @@ module OnebusawaySDK
14
14
  ?data: OnebusawaySDK::Models::SearchForRouteListResponse::Data
15
15
  ) -> void
16
16
 
17
+ def to_hash: -> {
18
+ data: OnebusawaySDK::Models::SearchForRouteListResponse::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::SearchForRouteListResponse::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
@@ -19,6 +19,12 @@ module OnebusawaySDK
19
19
  ?max_count: Integer,
20
20
  ?request_options: OnebusawaySDK::request_opts
21
21
  ) -> void
22
+
23
+ def to_hash: -> {
24
+ input: String,
25
+ max_count: Integer,
26
+ request_options: OnebusawaySDK::RequestOptions
27
+ }
22
28
  end
23
29
  end
24
30
  end
@@ -14,6 +14,10 @@ module OnebusawaySDK
14
14
  ?data: OnebusawaySDK::Models::SearchForStopListResponse::Data
15
15
  ) -> void
16
16
 
17
+ def to_hash: -> {
18
+ data: OnebusawaySDK::Models::SearchForStopListResponse::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::SearchForStopListResponse::Data::List],
48
+ out_of_range: bool,
49
+ references: OnebusawaySDK::References
50
+ }
51
+
41
52
  type list =
42
53
  {
43
54
  id: String,
@@ -95,6 +106,20 @@ module OnebusawaySDK
95
106
  ?direction: String,
96
107
  ?wheelchair_boarding: String
97
108
  ) -> void
109
+
110
+ def to_hash: -> {
111
+ id: String,
112
+ lat: Float,
113
+ location_type: Integer,
114
+ lon: Float,
115
+ name: String,
116
+ parent: String,
117
+ route_ids: ::Array[String],
118
+ static_route_ids: ::Array[String],
119
+ code: String,
120
+ direction: String,
121
+ wheelchair_boarding: String
122
+ }
98
123
  end
99
124
  end
100
125
  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::ShapeRetrieveResponse::Data
15
15
  ) -> void
16
16
 
17
+ def to_hash: -> {
18
+ data: OnebusawaySDK::Models::ShapeRetrieveResponse::Data
19
+ }
20
+
17
21
  type data =
18
22
  {
19
23
  entry: OnebusawaySDK::Models::ShapeRetrieveResponse::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::ShapeRetrieveResponse::Data::Entry,
39
+ references: OnebusawaySDK::References
40
+ }
41
+
33
42
  type entry = { length: Integer, points: String, levels: String }
34
43
 
35
44
  class Entry < OnebusawaySDK::Internal::Type::BaseModel
@@ -46,6 +55,8 @@ module OnebusawaySDK
46
55
  points: String,
47
56
  ?levels: String
48
57
  ) -> void
58
+
59
+ def to_hash: -> { length: Integer, points: String, levels: String }
49
60
  end
50
61
  end
51
62
  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::StopIDsForAgencyListResponse::Data
15
15
  ) -> void
16
16
 
17
+ def to_hash: -> {
18
+ data: OnebusawaySDK::Models::StopIDsForAgencyListResponse::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::StopRetrieveResponse::Data
15
15
  ) -> void
16
16
 
17
+ def to_hash: -> {
18
+ data: OnebusawaySDK::Models::StopRetrieveResponse::Data
19
+ }
20
+
17
21
  type data =
18
22
  {
19
23
  entry: OnebusawaySDK::Models::StopRetrieveResponse::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::StopRetrieveResponse::Data::Entry,
39
+ references: OnebusawaySDK::References
40
+ }
41
+
33
42
  type entry =
34
43
  {
35
44
  id: String,
@@ -87,6 +96,20 @@ module OnebusawaySDK
87
96
  ?direction: String,
88
97
  ?wheelchair_boarding: String
89
98
  ) -> void
99
+
100
+ def to_hash: -> {
101
+ id: String,
102
+ lat: Float,
103
+ location_type: Integer,
104
+ lon: Float,
105
+ name: String,
106
+ parent: String,
107
+ route_ids: ::Array[String],
108
+ static_route_ids: ::Array[String],
109
+ code: String,
110
+ direction: String,
111
+ wheelchair_boarding: String
112
+ }
90
113
  end
91
114
  end
92
115
  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
@@ -36,6 +36,13 @@ module OnebusawaySDK
36
36
  ?out_of_range: bool
37
37
  ) -> void
38
38
 
39
+ def to_hash: -> {
40
+ limit_exceeded: bool,
41
+ list: ::Array[OnebusawaySDK::Models::StopsForAgencyListResponse::List],
42
+ references: OnebusawaySDK::References,
43
+ out_of_range: bool
44
+ }
45
+
39
46
  type list =
40
47
  {
41
48
  id: String,
@@ -93,6 +100,20 @@ module OnebusawaySDK
93
100
  ?direction: String,
94
101
  ?wheelchair_boarding: String
95
102
  ) -> void
103
+
104
+ def to_hash: -> {
105
+ id: String,
106
+ lat: Float,
107
+ location_type: Integer,
108
+ lon: Float,
109
+ name: String,
110
+ parent: String,
111
+ route_ids: ::Array[String],
112
+ static_route_ids: ::Array[String],
113
+ code: String,
114
+ direction: String,
115
+ wheelchair_boarding: String
116
+ }
96
117
  end
97
118
  end
98
119
  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::StopsForLocationListResponse::Data
15
15
  ) -> void
16
16
 
17
+ def to_hash: -> {
18
+ data: OnebusawaySDK::Models::StopsForLocationListResponse::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::StopsForLocationListResponse::Data::List],
50
+ references: OnebusawaySDK::References,
51
+ out_of_range: bool
52
+ }
53
+
43
54
  type list =
44
55
  {
45
56
  id: String,
@@ -97,6 +108,20 @@ module OnebusawaySDK
97
108
  ?direction: String,
98
109
  ?wheelchair_boarding: String
99
110
  ) -> void
111
+
112
+ def to_hash: -> {
113
+ id: String,
114
+ lat: Float,
115
+ location_type: Integer,
116
+ lon: Float,
117
+ name: String,
118
+ parent: String,
119
+ route_ids: ::Array[String],
120
+ static_route_ids: ::Array[String],
121
+ code: String,
122
+ direction: String,
123
+ wheelchair_boarding: String
124
+ }
100
125
  end
101
126
  end
102
127
  end
@@ -21,6 +21,12 @@ module OnebusawaySDK
21
21
  ?time: String,
22
22
  ?request_options: OnebusawaySDK::request_opts
23
23
  ) -> void
24
+
25
+ def to_hash: -> {
26
+ include_polylines: bool,
27
+ time: String,
28
+ request_options: OnebusawaySDK::RequestOptions
29
+ }
24
30
  end
25
31
  end
26
32
  end
@@ -14,6 +14,10 @@ module OnebusawaySDK
14
14
  data: OnebusawaySDK::Models::StopsForRouteListResponse::Data
15
15
  ) -> void
16
16
 
17
+ def to_hash: -> {
18
+ data: OnebusawaySDK::Models::StopsForRouteListResponse::Data
19
+ }
20
+
17
21
  type data =
18
22
  {
19
23
  entry: OnebusawaySDK::Models::StopsForRouteListResponse::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::StopsForRouteListResponse::Data::Entry,
39
+ references: OnebusawaySDK::References
40
+ }
41
+
33
42
  type entry =
34
43
  {
35
44
  polylines: ::Array[OnebusawaySDK::Models::StopsForRouteListResponse::Data::Entry::Polyline],
@@ -66,6 +75,13 @@ module OnebusawaySDK
66
75
  ?stop_ids: ::Array[String]
67
76
  ) -> void
68
77
 
78
+ def to_hash: -> {
79
+ polylines: ::Array[OnebusawaySDK::Models::StopsForRouteListResponse::Data::Entry::Polyline],
80
+ route_id: String,
81
+ stop_groupings: ::Array[OnebusawaySDK::Models::StopsForRouteListResponse::Data::Entry::StopGrouping],
82
+ stop_ids: ::Array[String]
83
+ }
84
+
69
85
  type polyline = { length: Integer, levels: String, points: String }
70
86
 
71
87
  class Polyline < OnebusawaySDK::Internal::Type::BaseModel
@@ -86,6 +102,8 @@ module OnebusawaySDK
86
102
  ?levels: String,
87
103
  ?points: String
88
104
  ) -> void
105
+
106
+ def to_hash: -> { length: Integer, levels: String, points: String }
89
107
  end
90
108
 
91
109
  type stop_grouping =
@@ -124,6 +142,13 @@ module OnebusawaySDK
124
142
  ?stop_ids: ::Array[String]
125
143
  ) -> void
126
144
 
145
+ def to_hash: -> {
146
+ id: String,
147
+ name: OnebusawaySDK::Models::StopsForRouteListResponse::Data::Entry::StopGrouping::Name,
148
+ polylines: ::Array[OnebusawaySDK::Models::StopsForRouteListResponse::Data::Entry::StopGrouping::Polyline],
149
+ stop_ids: ::Array[String]
150
+ }
151
+
127
152
  type name_ = { name: String, names: ::Array[String], type: String }
128
153
 
129
154
  class Name < OnebusawaySDK::Internal::Type::BaseModel
@@ -144,6 +169,12 @@ module OnebusawaySDK
144
169
  ?names: ::Array[String],
145
170
  ?type: String
146
171
  ) -> void
172
+
173
+ def to_hash: -> {
174
+ name: String,
175
+ names: ::Array[String],
176
+ type: String
177
+ }
147
178
  end
148
179
 
149
180
  type polyline = { length: Integer, levels: String, points: String }
@@ -166,6 +197,12 @@ module OnebusawaySDK
166
197
  ?levels: String,
167
198
  ?points: String
168
199
  ) -> void
200
+
201
+ def to_hash: -> {
202
+ length: Integer,
203
+ levels: String,
204
+ points: String
205
+ }
169
206
  end
170
207
  end
171
208
  end
@@ -42,6 +42,15 @@ module OnebusawaySDK
42
42
  ?time: Integer,
43
43
  ?request_options: OnebusawaySDK::request_opts
44
44
  ) -> void
45
+
46
+ def to_hash: -> {
47
+ include_schedule: bool,
48
+ include_status: bool,
49
+ include_trip: bool,
50
+ service_date: Integer,
51
+ time: Integer,
52
+ request_options: OnebusawaySDK::RequestOptions
53
+ }
45
54
  end
46
55
  end
47
56
  end
@@ -14,6 +14,10 @@ module OnebusawaySDK
14
14
  data: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data
15
15
  ) -> void
16
16
 
17
+ def to_hash: -> {
18
+ data: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data
19
+ }
20
+
17
21
  type data =
18
22
  {
19
23
  entry: OnebusawaySDK::Models::TripDetailRetrieveResponse::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::TripDetailRetrieveResponse::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::TripDetailRetrieveResponse::Data::Entry::Status
75
84
  ) -> void
76
85
 
86
+ def to_hash: -> {
87
+ trip_id: String,
88
+ frequency: String?,
89
+ schedule: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule,
90
+ service_date: Integer,
91
+ situation_ids: ::Array[String],
92
+ status: OnebusawaySDK::Models::TripDetailRetrieveResponse::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::TripDetailRetrieveResponse::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::TripDetailRetrieveResponse::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::TripDetailRetrieveResponse::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