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::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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|