onebusaway-sdk 0.1.0.pre.alpha.205 → 0.1.0.pre.alpha.207
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/README.md +32 -20
- data/lib/onebusaway-sdk/base_client.rb +63 -91
- data/lib/onebusaway-sdk/base_model.rb +489 -514
- data/lib/onebusaway-sdk/base_page.rb +35 -15
- data/lib/onebusaway-sdk/client.rb +1 -3
- data/lib/onebusaway-sdk/errors.rb +15 -19
- data/lib/onebusaway-sdk/extern.rb +1 -4
- data/lib/onebusaway-sdk/models/references.rb +0 -21
- data/lib/onebusaway-sdk/models/report_problem_with_stop_retrieve_params.rb +0 -21
- data/lib/onebusaway-sdk/models/report_problem_with_trip_retrieve_params.rb +0 -23
- data/lib/onebusaway-sdk/pooled_net_requester.rb +53 -54
- data/lib/onebusaway-sdk/request_options.rb +4 -11
- data/lib/onebusaway-sdk/resources/agencies_with_coverage.rb +0 -2
- data/lib/onebusaway-sdk/resources/agency.rb +0 -2
- data/lib/onebusaway-sdk/resources/arrival_and_departure.rb +0 -3
- data/lib/onebusaway-sdk/resources/block.rb +0 -2
- data/lib/onebusaway-sdk/resources/config.rb +0 -2
- data/lib/onebusaway-sdk/resources/current_time.rb +0 -2
- data/lib/onebusaway-sdk/resources/report_problem_with_stop.rb +0 -2
- data/lib/onebusaway-sdk/resources/report_problem_with_trip.rb +0 -2
- data/lib/onebusaway-sdk/resources/route.rb +0 -2
- data/lib/onebusaway-sdk/resources/route_ids_for_agency.rb +0 -2
- data/lib/onebusaway-sdk/resources/routes_for_agency.rb +0 -2
- data/lib/onebusaway-sdk/resources/routes_for_location.rb +0 -2
- data/lib/onebusaway-sdk/resources/schedule_for_route.rb +0 -2
- data/lib/onebusaway-sdk/resources/schedule_for_stop.rb +0 -2
- data/lib/onebusaway-sdk/resources/search_for_route.rb +0 -2
- data/lib/onebusaway-sdk/resources/search_for_stop.rb +0 -2
- data/lib/onebusaway-sdk/resources/shape.rb +0 -2
- data/lib/onebusaway-sdk/resources/stop.rb +0 -2
- data/lib/onebusaway-sdk/resources/stop_ids_for_agency.rb +0 -2
- data/lib/onebusaway-sdk/resources/stops_for_agency.rb +0 -2
- data/lib/onebusaway-sdk/resources/stops_for_location.rb +0 -2
- data/lib/onebusaway-sdk/resources/stops_for_route.rb +0 -2
- data/lib/onebusaway-sdk/resources/trip.rb +0 -2
- data/lib/onebusaway-sdk/resources/trip_details.rb +0 -2
- data/lib/onebusaway-sdk/resources/trip_for_vehicle.rb +0 -2
- data/lib/onebusaway-sdk/resources/trips_for_location.rb +0 -2
- data/lib/onebusaway-sdk/resources/trips_for_route.rb +0 -2
- data/lib/onebusaway-sdk/resources/vehicles_for_agency.rb +0 -2
- data/lib/onebusaway-sdk/util.rb +297 -96
- data/lib/onebusaway-sdk/version.rb +1 -1
- data/lib/onebusaway-sdk.rb +1 -0
- data/manifest.yaml +1 -0
- data/rbi/lib/onebusaway-sdk/base_client.rbi +52 -35
- data/rbi/lib/onebusaway-sdk/base_model.rbi +400 -256
- data/rbi/lib/onebusaway-sdk/base_page.rbi +3 -4
- data/rbi/lib/onebusaway-sdk/client.rbi +7 -2
- data/rbi/lib/onebusaway-sdk/errors.rbi +44 -10
- data/rbi/lib/onebusaway-sdk/extern.rbi +1 -1
- data/rbi/lib/onebusaway-sdk/models/agencies_with_coverage_list_params.rbi +5 -2
- data/rbi/lib/onebusaway-sdk/models/agencies_with_coverage_list_response.rbi +9 -6
- data/rbi/lib/onebusaway-sdk/models/agency_retrieve_params.rbi +5 -2
- data/rbi/lib/onebusaway-sdk/models/agency_retrieve_response.rbi +6 -6
- data/rbi/lib/onebusaway-sdk/models/arrival_and_departure_list_params.rbi +5 -2
- data/rbi/lib/onebusaway-sdk/models/arrival_and_departure_list_response.rbi +95 -14
- data/rbi/lib/onebusaway-sdk/models/arrival_and_departure_retrieve_params.rbi +2 -9
- data/rbi/lib/onebusaway-sdk/models/arrival_and_departure_retrieve_response.rbi +93 -12
- data/rbi/lib/onebusaway-sdk/models/block_retrieve_params.rbi +5 -2
- data/rbi/lib/onebusaway-sdk/models/block_retrieve_response.rbi +14 -20
- data/rbi/lib/onebusaway-sdk/models/config_retrieve_params.rbi +5 -2
- data/rbi/lib/onebusaway-sdk/models/config_retrieve_response.rbi +8 -14
- data/rbi/lib/onebusaway-sdk/models/current_time_retrieve_params.rbi +5 -2
- data/rbi/lib/onebusaway-sdk/models/current_time_retrieve_response.rbi +6 -6
- data/rbi/lib/onebusaway-sdk/models/references.rbi +60 -43
- data/rbi/lib/onebusaway-sdk/models/report_problem_with_stop_retrieve_params.rbi +10 -6
- data/rbi/lib/onebusaway-sdk/models/report_problem_with_trip_retrieve_params.rbi +15 -6
- data/rbi/lib/onebusaway-sdk/models/response_wrapper.rbi +4 -2
- data/rbi/lib/onebusaway-sdk/models/route_ids_for_agency_list_params.rbi +5 -2
- data/rbi/lib/onebusaway-sdk/models/route_ids_for_agency_list_response.rbi +4 -4
- data/rbi/lib/onebusaway-sdk/models/route_retrieve_params.rbi +5 -2
- data/rbi/lib/onebusaway-sdk/models/route_retrieve_response.rbi +6 -6
- data/rbi/lib/onebusaway-sdk/models/routes_for_agency_list_params.rbi +5 -2
- data/rbi/lib/onebusaway-sdk/models/routes_for_agency_list_response.rbi +6 -6
- data/rbi/lib/onebusaway-sdk/models/routes_for_location_list_params.rbi +2 -2
- data/rbi/lib/onebusaway-sdk/models/routes_for_location_list_response.rbi +6 -6
- data/rbi/lib/onebusaway-sdk/models/schedule_for_route_retrieve_params.rbi +5 -8
- data/rbi/lib/onebusaway-sdk/models/schedule_for_route_retrieve_response.rbi +19 -16
- data/rbi/lib/onebusaway-sdk/models/schedule_for_stop_retrieve_params.rbi +5 -8
- data/rbi/lib/onebusaway-sdk/models/schedule_for_stop_retrieve_response.rbi +14 -14
- data/rbi/lib/onebusaway-sdk/models/search_for_route_list_params.rbi +4 -2
- data/rbi/lib/onebusaway-sdk/models/search_for_route_list_response.rbi +6 -6
- data/rbi/lib/onebusaway-sdk/models/search_for_stop_list_params.rbi +4 -2
- data/rbi/lib/onebusaway-sdk/models/search_for_stop_list_response.rbi +6 -6
- data/rbi/lib/onebusaway-sdk/models/shape_retrieve_params.rbi +5 -2
- data/rbi/lib/onebusaway-sdk/models/shape_retrieve_response.rbi +7 -6
- data/rbi/lib/onebusaway-sdk/models/stop_ids_for_agency_list_params.rbi +5 -2
- data/rbi/lib/onebusaway-sdk/models/stop_ids_for_agency_list_response.rbi +4 -4
- data/rbi/lib/onebusaway-sdk/models/stop_retrieve_params.rbi +5 -2
- data/rbi/lib/onebusaway-sdk/models/stop_retrieve_response.rbi +6 -6
- data/rbi/lib/onebusaway-sdk/models/stops_for_agency_list_params.rbi +5 -2
- data/rbi/lib/onebusaway-sdk/models/stops_for_agency_list_response.rbi +4 -4
- data/rbi/lib/onebusaway-sdk/models/stops_for_location_list_params.rbi +6 -2
- data/rbi/lib/onebusaway-sdk/models/stops_for_location_list_response.rbi +6 -6
- data/rbi/lib/onebusaway-sdk/models/stops_for_route_list_params.rbi +4 -2
- data/rbi/lib/onebusaway-sdk/models/stops_for_route_list_response.rbi +14 -14
- data/rbi/lib/onebusaway-sdk/models/trip_detail_retrieve_params.rbi +10 -2
- data/rbi/lib/onebusaway-sdk/models/trip_detail_retrieve_response.rbi +54 -23
- data/rbi/lib/onebusaway-sdk/models/trip_for_vehicle_retrieve_params.rbi +9 -8
- data/rbi/lib/onebusaway-sdk/models/trip_for_vehicle_retrieve_response.rbi +54 -23
- data/rbi/lib/onebusaway-sdk/models/trip_retrieve_params.rbi +5 -2
- data/rbi/lib/onebusaway-sdk/models/trip_retrieve_response.rbi +6 -6
- data/rbi/lib/onebusaway-sdk/models/trips_for_location_list_params.rbi +12 -12
- data/rbi/lib/onebusaway-sdk/models/trips_for_location_list_response.rbi +56 -16
- data/rbi/lib/onebusaway-sdk/models/trips_for_route_list_params.rbi +6 -2
- data/rbi/lib/onebusaway-sdk/models/trips_for_route_list_response.rbi +54 -16
- data/rbi/lib/onebusaway-sdk/models/vehicles_for_agency_list_params.rbi +3 -2
- data/rbi/lib/onebusaway-sdk/models/vehicles_for_agency_list_response.rbi +52 -14
- data/rbi/lib/onebusaway-sdk/pooled_net_requester.rbi +28 -13
- data/rbi/lib/onebusaway-sdk/request_options.rbi +25 -2
- data/rbi/lib/onebusaway-sdk/resources/agencies_with_coverage.rbi +4 -2
- data/rbi/lib/onebusaway-sdk/resources/agency.rbi +8 -3
- data/rbi/lib/onebusaway-sdk/resources/arrival_and_departure.rbi +14 -3
- data/rbi/lib/onebusaway-sdk/resources/block.rbi +8 -3
- data/rbi/lib/onebusaway-sdk/resources/config.rbi +3 -2
- data/rbi/lib/onebusaway-sdk/resources/current_time.rbi +3 -2
- data/rbi/lib/onebusaway-sdk/resources/report_problem_with_stop.rbi +9 -2
- data/rbi/lib/onebusaway-sdk/resources/report_problem_with_trip.rbi +14 -2
- data/rbi/lib/onebusaway-sdk/resources/route.rbi +8 -3
- data/rbi/lib/onebusaway-sdk/resources/route_ids_for_agency.rbi +8 -3
- data/rbi/lib/onebusaway-sdk/resources/routes_for_agency.rbi +8 -3
- data/rbi/lib/onebusaway-sdk/resources/routes_for_location.rbi +3 -2
- data/rbi/lib/onebusaway-sdk/resources/schedule_for_route.rbi +11 -3
- data/rbi/lib/onebusaway-sdk/resources/schedule_for_stop.rbi +11 -3
- data/rbi/lib/onebusaway-sdk/resources/search_for_route.rbi +10 -3
- data/rbi/lib/onebusaway-sdk/resources/search_for_stop.rbi +10 -3
- data/rbi/lib/onebusaway-sdk/resources/shape.rbi +8 -3
- data/rbi/lib/onebusaway-sdk/resources/stop.rbi +8 -3
- data/rbi/lib/onebusaway-sdk/resources/stop_ids_for_agency.rbi +8 -3
- data/rbi/lib/onebusaway-sdk/resources/stops_for_agency.rbi +8 -3
- data/rbi/lib/onebusaway-sdk/resources/stops_for_location.rbi +16 -3
- data/rbi/lib/onebusaway-sdk/resources/stops_for_route.rbi +12 -3
- data/rbi/lib/onebusaway-sdk/resources/trip.rbi +8 -3
- data/rbi/lib/onebusaway-sdk/resources/trip_details.rbi +12 -2
- data/rbi/lib/onebusaway-sdk/resources/trip_for_vehicle.rbi +11 -2
- data/rbi/lib/onebusaway-sdk/resources/trips_for_location.rbi +12 -2
- data/rbi/lib/onebusaway-sdk/resources/trips_for_route.rbi +15 -3
- data/rbi/lib/onebusaway-sdk/resources/vehicles_for_agency.rbi +10 -3
- data/rbi/lib/onebusaway-sdk/util.rbi +214 -83
- data/rbi/lib/onebusaway-sdk/version.rbi +1 -1
- data/sig/onebusaway-sdk/base_client.rbs +9 -8
- data/sig/onebusaway-sdk/base_model.rbs +8 -6
- data/sig/onebusaway-sdk/base_page.rbs +1 -1
- data/sig/onebusaway-sdk/errors.rbs +6 -5
- data/sig/onebusaway-sdk/pooled_net_requester.rbs +11 -4
- data/sig/onebusaway-sdk/request_options.rbs +4 -0
- data/sig/onebusaway-sdk/util.rbs +46 -2
- data/sig/onebusaway-sdk/version.rbs +1 -1
- metadata +4 -4
@@ -6,8 +6,11 @@ module OnebusawaySDK
|
|
6
6
|
extend OnebusawaySDK::RequestParameters::Converter
|
7
7
|
include OnebusawaySDK::RequestParameters
|
8
8
|
|
9
|
-
sig
|
10
|
-
|
9
|
+
sig do
|
10
|
+
params(request_options: T.any(OnebusawaySDK::RequestOptions, T::Hash[Symbol, T.anything]))
|
11
|
+
.returns(T.attached_class)
|
12
|
+
end
|
13
|
+
def self.new(request_options: {})
|
11
14
|
end
|
12
15
|
|
13
16
|
sig { override.returns({request_options: OnebusawaySDK::RequestOptions}) }
|
@@ -14,8 +14,8 @@ module OnebusawaySDK
|
|
14
14
|
def data=(_)
|
15
15
|
end
|
16
16
|
|
17
|
-
sig { params(data: OnebusawaySDK::Models::RouteIDsForAgencyListResponse::Data).
|
18
|
-
def
|
17
|
+
sig { params(data: OnebusawaySDK::Models::RouteIDsForAgencyListResponse::Data).returns(T.attached_class) }
|
18
|
+
def self.new(data:)
|
19
19
|
end
|
20
20
|
|
21
21
|
sig { override.returns({data: OnebusawaySDK::Models::RouteIDsForAgencyListResponse::Data}) }
|
@@ -49,9 +49,9 @@ module OnebusawaySDK
|
|
49
49
|
|
50
50
|
sig do
|
51
51
|
params(limit_exceeded: T::Boolean, list: T::Array[String], references: OnebusawaySDK::Models::References)
|
52
|
-
.
|
52
|
+
.returns(T.attached_class)
|
53
53
|
end
|
54
|
-
def
|
54
|
+
def self.new(limit_exceeded:, list:, references:)
|
55
55
|
end
|
56
56
|
|
57
57
|
sig do
|
@@ -6,8 +6,11 @@ module OnebusawaySDK
|
|
6
6
|
extend OnebusawaySDK::RequestParameters::Converter
|
7
7
|
include OnebusawaySDK::RequestParameters
|
8
8
|
|
9
|
-
sig
|
10
|
-
|
9
|
+
sig do
|
10
|
+
params(request_options: T.any(OnebusawaySDK::RequestOptions, T::Hash[Symbol, T.anything]))
|
11
|
+
.returns(T.attached_class)
|
12
|
+
end
|
13
|
+
def self.new(request_options: {})
|
11
14
|
end
|
12
15
|
|
13
16
|
sig { override.returns({request_options: OnebusawaySDK::RequestOptions}) }
|
@@ -14,8 +14,8 @@ module OnebusawaySDK
|
|
14
14
|
def data=(_)
|
15
15
|
end
|
16
16
|
|
17
|
-
sig { params(data: OnebusawaySDK::Models::RouteRetrieveResponse::Data).
|
18
|
-
def
|
17
|
+
sig { params(data: OnebusawaySDK::Models::RouteRetrieveResponse::Data).returns(T.attached_class) }
|
18
|
+
def self.new(data:)
|
19
19
|
end
|
20
20
|
|
21
21
|
sig { override.returns({data: OnebusawaySDK::Models::RouteRetrieveResponse::Data}) }
|
@@ -47,9 +47,9 @@ module OnebusawaySDK
|
|
47
47
|
entry: OnebusawaySDK::Models::RouteRetrieveResponse::Data::Entry,
|
48
48
|
references: OnebusawaySDK::Models::References
|
49
49
|
)
|
50
|
-
.
|
50
|
+
.returns(T.attached_class)
|
51
51
|
end
|
52
|
-
def
|
52
|
+
def self.new(entry:, references:)
|
53
53
|
end
|
54
54
|
|
55
55
|
sig do
|
@@ -158,9 +158,9 @@ module OnebusawaySDK
|
|
158
158
|
text_color: String,
|
159
159
|
url: String
|
160
160
|
)
|
161
|
-
.
|
161
|
+
.returns(T.attached_class)
|
162
162
|
end
|
163
|
-
def
|
163
|
+
def self.new(
|
164
164
|
id:,
|
165
165
|
agency_id:,
|
166
166
|
type:,
|
@@ -6,8 +6,11 @@ module OnebusawaySDK
|
|
6
6
|
extend OnebusawaySDK::RequestParameters::Converter
|
7
7
|
include OnebusawaySDK::RequestParameters
|
8
8
|
|
9
|
-
sig
|
10
|
-
|
9
|
+
sig do
|
10
|
+
params(request_options: T.any(OnebusawaySDK::RequestOptions, T::Hash[Symbol, T.anything]))
|
11
|
+
.returns(T.attached_class)
|
12
|
+
end
|
13
|
+
def self.new(request_options: {})
|
11
14
|
end
|
12
15
|
|
13
16
|
sig { override.returns({request_options: OnebusawaySDK::RequestOptions}) }
|
@@ -14,8 +14,8 @@ module OnebusawaySDK
|
|
14
14
|
def data=(_)
|
15
15
|
end
|
16
16
|
|
17
|
-
sig { params(data: OnebusawaySDK::Models::RoutesForAgencyListResponse::Data).
|
18
|
-
def
|
17
|
+
sig { params(data: OnebusawaySDK::Models::RoutesForAgencyListResponse::Data).returns(T.attached_class) }
|
18
|
+
def self.new(data:)
|
19
19
|
end
|
20
20
|
|
21
21
|
sig { override.returns({data: OnebusawaySDK::Models::RoutesForAgencyListResponse::Data}) }
|
@@ -56,9 +56,9 @@ module OnebusawaySDK
|
|
56
56
|
list: T::Array[OnebusawaySDK::Models::RoutesForAgencyListResponse::Data::List],
|
57
57
|
references: OnebusawaySDK::Models::References
|
58
58
|
)
|
59
|
-
.
|
59
|
+
.returns(T.attached_class)
|
60
60
|
end
|
61
|
-
def
|
61
|
+
def self.new(limit_exceeded:, list:, references:)
|
62
62
|
end
|
63
63
|
|
64
64
|
sig do
|
@@ -168,9 +168,9 @@ module OnebusawaySDK
|
|
168
168
|
text_color: String,
|
169
169
|
url: String
|
170
170
|
)
|
171
|
-
.
|
171
|
+
.returns(T.attached_class)
|
172
172
|
end
|
173
|
-
def
|
173
|
+
def self.new(
|
174
174
|
id:,
|
175
175
|
agency_id:,
|
176
176
|
type:,
|
@@ -64,9 +64,9 @@ module OnebusawaySDK
|
|
64
64
|
radius: Float,
|
65
65
|
request_options: T.any(OnebusawaySDK::RequestOptions, T::Hash[Symbol, T.anything])
|
66
66
|
)
|
67
|
-
.
|
67
|
+
.returns(T.attached_class)
|
68
68
|
end
|
69
|
-
def
|
69
|
+
def self.new(lat:, lon:, lat_span: nil, lon_span: nil, query: nil, radius: nil, request_options: {})
|
70
70
|
end
|
71
71
|
|
72
72
|
sig do
|
@@ -14,8 +14,8 @@ module OnebusawaySDK
|
|
14
14
|
def data=(_)
|
15
15
|
end
|
16
16
|
|
17
|
-
sig { params(data: OnebusawaySDK::Models::RoutesForLocationListResponse::Data).
|
18
|
-
def
|
17
|
+
sig { params(data: OnebusawaySDK::Models::RoutesForLocationListResponse::Data).returns(T.attached_class) }
|
18
|
+
def self.new(data:)
|
19
19
|
end
|
20
20
|
|
21
21
|
sig { override.returns({data: OnebusawaySDK::Models::RoutesForLocationListResponse::Data}) }
|
@@ -65,9 +65,9 @@ module OnebusawaySDK
|
|
65
65
|
out_of_range: T::Boolean,
|
66
66
|
references: OnebusawaySDK::Models::References
|
67
67
|
)
|
68
|
-
.
|
68
|
+
.returns(T.attached_class)
|
69
69
|
end
|
70
|
-
def
|
70
|
+
def self.new(limit_exceeded:, list:, out_of_range:, references:)
|
71
71
|
end
|
72
72
|
|
73
73
|
sig do
|
@@ -178,9 +178,9 @@ module OnebusawaySDK
|
|
178
178
|
text_color: String,
|
179
179
|
url: String
|
180
180
|
)
|
181
|
-
.
|
181
|
+
.returns(T.attached_class)
|
182
182
|
end
|
183
|
-
def
|
183
|
+
def self.new(
|
184
184
|
id:,
|
185
185
|
agency_id:,
|
186
186
|
type:,
|
@@ -6,6 +6,8 @@ module OnebusawaySDK
|
|
6
6
|
extend OnebusawaySDK::RequestParameters::Converter
|
7
7
|
include OnebusawaySDK::RequestParameters
|
8
8
|
|
9
|
+
# The date for which you want to request a schedule in the format YYYY-MM-DD
|
10
|
+
# (optional, defaults to current date)
|
9
11
|
sig { returns(T.nilable(Date)) }
|
10
12
|
def date
|
11
13
|
end
|
@@ -15,15 +17,10 @@ module OnebusawaySDK
|
|
15
17
|
end
|
16
18
|
|
17
19
|
sig do
|
18
|
-
params(
|
19
|
-
|
20
|
-
request_options: T.any(
|
21
|
-
OnebusawaySDK::RequestOptions,
|
22
|
-
T::Hash[Symbol, T.anything]
|
23
|
-
)
|
24
|
-
).void
|
20
|
+
params(date: Date, request_options: T.any(OnebusawaySDK::RequestOptions, T::Hash[Symbol, T.anything]))
|
21
|
+
.returns(T.attached_class)
|
25
22
|
end
|
26
|
-
def
|
23
|
+
def self.new(date: nil, request_options: {})
|
27
24
|
end
|
28
25
|
|
29
26
|
sig { override.returns({date: Date, request_options: OnebusawaySDK::RequestOptions}) }
|
@@ -14,8 +14,8 @@ module OnebusawaySDK
|
|
14
14
|
def data=(_)
|
15
15
|
end
|
16
16
|
|
17
|
-
sig { params(data: OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data).
|
18
|
-
def
|
17
|
+
sig { params(data: OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data).returns(T.attached_class) }
|
18
|
+
def self.new(data:)
|
19
19
|
end
|
20
20
|
|
21
21
|
sig { override.returns({data: OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data}) }
|
@@ -34,8 +34,11 @@ module OnebusawaySDK
|
|
34
34
|
def entry=(_)
|
35
35
|
end
|
36
36
|
|
37
|
-
sig
|
38
|
-
|
37
|
+
sig do
|
38
|
+
params(entry: OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry)
|
39
|
+
.returns(T.attached_class)
|
40
|
+
end
|
41
|
+
def self.new(entry:)
|
39
42
|
end
|
40
43
|
|
41
44
|
sig { override.returns({entry: OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry}) }
|
@@ -111,9 +114,9 @@ module OnebusawaySDK
|
|
111
114
|
stop_trip_groupings: T::Array[OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping],
|
112
115
|
trips: T::Array[OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::Trip]
|
113
116
|
)
|
114
|
-
.
|
117
|
+
.returns(T.attached_class)
|
115
118
|
end
|
116
|
-
def
|
119
|
+
def self.new(route_id:, schedule_date:, service_ids:, stops:, stop_trip_groupings:, trips:)
|
117
120
|
end
|
118
121
|
|
119
122
|
sig do
|
@@ -235,9 +238,9 @@ module OnebusawaySDK
|
|
235
238
|
location_type: Integer,
|
236
239
|
wheelchair_boarding: String
|
237
240
|
)
|
238
|
-
.
|
241
|
+
.returns(T.attached_class)
|
239
242
|
end
|
240
|
-
def
|
243
|
+
def self.new(
|
241
244
|
id:,
|
242
245
|
lat:,
|
243
246
|
lon:,
|
@@ -336,9 +339,9 @@ module OnebusawaySDK
|
|
336
339
|
trip_ids: T::Array[String],
|
337
340
|
trips_with_stop_times: T::Array[OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping::TripsWithStopTime]
|
338
341
|
)
|
339
|
-
.
|
342
|
+
.returns(T.attached_class)
|
340
343
|
end
|
341
|
-
def
|
344
|
+
def self.new(direction_id:, stop_ids:, trip_headsigns:, trip_ids:, trips_with_stop_times: nil)
|
342
345
|
end
|
343
346
|
|
344
347
|
sig do
|
@@ -397,9 +400,9 @@ module OnebusawaySDK
|
|
397
400
|
],
|
398
401
|
trip_id: String
|
399
402
|
)
|
400
|
-
.
|
403
|
+
.returns(T.attached_class)
|
401
404
|
end
|
402
|
-
def
|
405
|
+
def self.new(stop_times:, trip_id:)
|
403
406
|
end
|
404
407
|
|
405
408
|
sig do
|
@@ -492,9 +495,9 @@ module OnebusawaySDK
|
|
492
495
|
service_id: String,
|
493
496
|
stop_headsign: String
|
494
497
|
)
|
495
|
-
.
|
498
|
+
.returns(T.attached_class)
|
496
499
|
end
|
497
|
-
def
|
500
|
+
def self.new(
|
498
501
|
arrival_enabled:,
|
499
502
|
arrival_time:,
|
500
503
|
departure_enabled:,
|
@@ -630,9 +633,9 @@ module OnebusawaySDK
|
|
630
633
|
trip_headsign: String,
|
631
634
|
trip_short_name: String
|
632
635
|
)
|
633
|
-
.
|
636
|
+
.returns(T.attached_class)
|
634
637
|
end
|
635
|
-
def
|
638
|
+
def self.new(
|
636
639
|
id:,
|
637
640
|
route_id:,
|
638
641
|
service_id:,
|
@@ -6,6 +6,8 @@ module OnebusawaySDK
|
|
6
6
|
extend OnebusawaySDK::RequestParameters::Converter
|
7
7
|
include OnebusawaySDK::RequestParameters
|
8
8
|
|
9
|
+
# The date for which you want to request a schedule in the format YYYY-MM-DD
|
10
|
+
# (optional, defaults to the current date)
|
9
11
|
sig { returns(T.nilable(Date)) }
|
10
12
|
def date
|
11
13
|
end
|
@@ -15,15 +17,10 @@ module OnebusawaySDK
|
|
15
17
|
end
|
16
18
|
|
17
19
|
sig do
|
18
|
-
params(
|
19
|
-
|
20
|
-
request_options: T.any(
|
21
|
-
OnebusawaySDK::RequestOptions,
|
22
|
-
T::Hash[Symbol, T.anything]
|
23
|
-
)
|
24
|
-
).void
|
20
|
+
params(date: Date, request_options: T.any(OnebusawaySDK::RequestOptions, T::Hash[Symbol, T.anything]))
|
21
|
+
.returns(T.attached_class)
|
25
22
|
end
|
26
|
-
def
|
23
|
+
def self.new(date: nil, request_options: {})
|
27
24
|
end
|
28
25
|
|
29
26
|
sig { override.returns({date: Date, request_options: OnebusawaySDK::RequestOptions}) }
|
@@ -14,8 +14,8 @@ module OnebusawaySDK
|
|
14
14
|
def data=(_)
|
15
15
|
end
|
16
16
|
|
17
|
-
sig { params(data: OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data).
|
18
|
-
def
|
17
|
+
sig { params(data: OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data).returns(T.attached_class) }
|
18
|
+
def self.new(data:)
|
19
19
|
end
|
20
20
|
|
21
21
|
sig { override.returns({data: OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data}) }
|
@@ -47,9 +47,9 @@ module OnebusawaySDK
|
|
47
47
|
entry: OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry,
|
48
48
|
references: OnebusawaySDK::Models::References
|
49
49
|
)
|
50
|
-
.
|
50
|
+
.returns(T.attached_class)
|
51
51
|
end
|
52
|
-
def
|
52
|
+
def self.new(entry:, references:)
|
53
53
|
end
|
54
54
|
|
55
55
|
sig do
|
@@ -100,9 +100,9 @@ module OnebusawaySDK
|
|
100
100
|
stop_id: String,
|
101
101
|
stop_route_schedules: T::Array[OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule]
|
102
102
|
)
|
103
|
-
.
|
103
|
+
.returns(T.attached_class)
|
104
104
|
end
|
105
|
-
def
|
105
|
+
def self.new(date:, stop_id:, stop_route_schedules:)
|
106
106
|
end
|
107
107
|
|
108
108
|
sig do
|
@@ -159,9 +159,9 @@ module OnebusawaySDK
|
|
159
159
|
OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule
|
160
160
|
]
|
161
161
|
)
|
162
|
-
.
|
162
|
+
.returns(T.attached_class)
|
163
163
|
end
|
164
|
-
def
|
164
|
+
def self.new(route_id:, stop_route_direction_schedules:)
|
165
165
|
end
|
166
166
|
|
167
167
|
sig do
|
@@ -249,9 +249,9 @@ module OnebusawaySDK
|
|
249
249
|
OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule::ScheduleFrequency
|
250
250
|
]
|
251
251
|
)
|
252
|
-
.
|
252
|
+
.returns(T.attached_class)
|
253
253
|
end
|
254
|
-
def
|
254
|
+
def self.new(schedule_stop_times:, trip_headsign:, schedule_frequencies: nil)
|
255
255
|
end
|
256
256
|
|
257
257
|
sig do
|
@@ -338,9 +338,9 @@ module OnebusawaySDK
|
|
338
338
|
trip_id: String,
|
339
339
|
stop_headsign: String
|
340
340
|
)
|
341
|
-
.
|
341
|
+
.returns(T.attached_class)
|
342
342
|
end
|
343
|
-
def
|
343
|
+
def self.new(
|
344
344
|
arrival_enabled:,
|
345
345
|
arrival_time:,
|
346
346
|
departure_enabled:,
|
@@ -427,9 +427,9 @@ module OnebusawaySDK
|
|
427
427
|
start_time: Integer,
|
428
428
|
trip_id: String
|
429
429
|
)
|
430
|
-
.
|
430
|
+
.returns(T.attached_class)
|
431
431
|
end
|
432
|
-
def
|
432
|
+
def self.new(end_time:, headway:, service_date:, service_id:, start_time:, trip_id:)
|
433
433
|
end
|
434
434
|
|
435
435
|
sig do
|
@@ -6,6 +6,7 @@ module OnebusawaySDK
|
|
6
6
|
extend OnebusawaySDK::RequestParameters::Converter
|
7
7
|
include OnebusawaySDK::RequestParameters
|
8
8
|
|
9
|
+
# The string to search for.
|
9
10
|
sig { returns(String) }
|
10
11
|
def input
|
11
12
|
end
|
@@ -14,6 +15,7 @@ module OnebusawaySDK
|
|
14
15
|
def input=(_)
|
15
16
|
end
|
16
17
|
|
18
|
+
# The max number of results to return. Defaults to 20.
|
17
19
|
sig { returns(T.nilable(Integer)) }
|
18
20
|
def max_count
|
19
21
|
end
|
@@ -28,9 +30,9 @@ module OnebusawaySDK
|
|
28
30
|
max_count: Integer,
|
29
31
|
request_options: T.any(OnebusawaySDK::RequestOptions, T::Hash[Symbol, T.anything])
|
30
32
|
)
|
31
|
-
.
|
33
|
+
.returns(T.attached_class)
|
32
34
|
end
|
33
|
-
def
|
35
|
+
def self.new(input:, max_count: nil, request_options: {})
|
34
36
|
end
|
35
37
|
|
36
38
|
sig do
|
@@ -14,8 +14,8 @@ module OnebusawaySDK
|
|
14
14
|
def data=(_)
|
15
15
|
end
|
16
16
|
|
17
|
-
sig { params(data: OnebusawaySDK::Models::SearchForRouteListResponse::Data).
|
18
|
-
def
|
17
|
+
sig { params(data: OnebusawaySDK::Models::SearchForRouteListResponse::Data).returns(T.attached_class) }
|
18
|
+
def self.new(data: nil)
|
19
19
|
end
|
20
20
|
|
21
21
|
sig { override.returns({data: OnebusawaySDK::Models::SearchForRouteListResponse::Data}) }
|
@@ -65,9 +65,9 @@ module OnebusawaySDK
|
|
65
65
|
out_of_range: T::Boolean,
|
66
66
|
references: OnebusawaySDK::Models::References
|
67
67
|
)
|
68
|
-
.
|
68
|
+
.returns(T.attached_class)
|
69
69
|
end
|
70
|
-
def
|
70
|
+
def self.new(limit_exceeded:, list:, out_of_range:, references:)
|
71
71
|
end
|
72
72
|
|
73
73
|
sig do
|
@@ -178,9 +178,9 @@ module OnebusawaySDK
|
|
178
178
|
text_color: String,
|
179
179
|
url: String
|
180
180
|
)
|
181
|
-
.
|
181
|
+
.returns(T.attached_class)
|
182
182
|
end
|
183
|
-
def
|
183
|
+
def self.new(
|
184
184
|
id:,
|
185
185
|
agency_id:,
|
186
186
|
type:,
|
@@ -6,6 +6,7 @@ module OnebusawaySDK
|
|
6
6
|
extend OnebusawaySDK::RequestParameters::Converter
|
7
7
|
include OnebusawaySDK::RequestParameters
|
8
8
|
|
9
|
+
# The string to search for.
|
9
10
|
sig { returns(String) }
|
10
11
|
def input
|
11
12
|
end
|
@@ -14,6 +15,7 @@ module OnebusawaySDK
|
|
14
15
|
def input=(_)
|
15
16
|
end
|
16
17
|
|
18
|
+
# The max number of results to return. Defaults to 20.
|
17
19
|
sig { returns(T.nilable(Integer)) }
|
18
20
|
def max_count
|
19
21
|
end
|
@@ -28,9 +30,9 @@ module OnebusawaySDK
|
|
28
30
|
max_count: Integer,
|
29
31
|
request_options: T.any(OnebusawaySDK::RequestOptions, T::Hash[Symbol, T.anything])
|
30
32
|
)
|
31
|
-
.
|
33
|
+
.returns(T.attached_class)
|
32
34
|
end
|
33
|
-
def
|
35
|
+
def self.new(input:, max_count: nil, request_options: {})
|
34
36
|
end
|
35
37
|
|
36
38
|
sig do
|
@@ -14,8 +14,8 @@ module OnebusawaySDK
|
|
14
14
|
def data=(_)
|
15
15
|
end
|
16
16
|
|
17
|
-
sig { params(data: OnebusawaySDK::Models::SearchForStopListResponse::Data).
|
18
|
-
def
|
17
|
+
sig { params(data: OnebusawaySDK::Models::SearchForStopListResponse::Data).returns(T.attached_class) }
|
18
|
+
def self.new(data: nil)
|
19
19
|
end
|
20
20
|
|
21
21
|
sig { override.returns({data: OnebusawaySDK::Models::SearchForStopListResponse::Data}) }
|
@@ -65,9 +65,9 @@ module OnebusawaySDK
|
|
65
65
|
out_of_range: T::Boolean,
|
66
66
|
references: OnebusawaySDK::Models::References
|
67
67
|
)
|
68
|
-
.
|
68
|
+
.returns(T.attached_class)
|
69
69
|
end
|
70
|
-
def
|
70
|
+
def self.new(limit_exceeded:, list:, out_of_range:, references:)
|
71
71
|
end
|
72
72
|
|
73
73
|
sig do
|
@@ -187,9 +187,9 @@ module OnebusawaySDK
|
|
187
187
|
location_type: Integer,
|
188
188
|
wheelchair_boarding: String
|
189
189
|
)
|
190
|
-
.
|
190
|
+
.returns(T.attached_class)
|
191
191
|
end
|
192
|
-
def
|
192
|
+
def self.new(
|
193
193
|
id:,
|
194
194
|
lat:,
|
195
195
|
lon:,
|
@@ -6,8 +6,11 @@ module OnebusawaySDK
|
|
6
6
|
extend OnebusawaySDK::RequestParameters::Converter
|
7
7
|
include OnebusawaySDK::RequestParameters
|
8
8
|
|
9
|
-
sig
|
10
|
-
|
9
|
+
sig do
|
10
|
+
params(request_options: T.any(OnebusawaySDK::RequestOptions, T::Hash[Symbol, T.anything]))
|
11
|
+
.returns(T.attached_class)
|
12
|
+
end
|
13
|
+
def self.new(request_options: {})
|
11
14
|
end
|
12
15
|
|
13
16
|
sig { override.returns({request_options: OnebusawaySDK::RequestOptions}) }
|
@@ -14,8 +14,8 @@ module OnebusawaySDK
|
|
14
14
|
def data=(_)
|
15
15
|
end
|
16
16
|
|
17
|
-
sig { params(data: OnebusawaySDK::Models::ShapeRetrieveResponse::Data).
|
18
|
-
def
|
17
|
+
sig { params(data: OnebusawaySDK::Models::ShapeRetrieveResponse::Data).returns(T.attached_class) }
|
18
|
+
def self.new(data:)
|
19
19
|
end
|
20
20
|
|
21
21
|
sig { override.returns({data: OnebusawaySDK::Models::ShapeRetrieveResponse::Data}) }
|
@@ -47,9 +47,9 @@ module OnebusawaySDK
|
|
47
47
|
entry: OnebusawaySDK::Models::ShapeRetrieveResponse::Data::Entry,
|
48
48
|
references: OnebusawaySDK::Models::References
|
49
49
|
)
|
50
|
-
.
|
50
|
+
.returns(T.attached_class)
|
51
51
|
end
|
52
|
-
def
|
52
|
+
def self.new(entry:, references:)
|
53
53
|
end
|
54
54
|
|
55
55
|
sig do
|
@@ -73,6 +73,7 @@ module OnebusawaySDK
|
|
73
73
|
def length=(_)
|
74
74
|
end
|
75
75
|
|
76
|
+
# Encoded polyline format representing the shape of the path
|
76
77
|
sig { returns(String) }
|
77
78
|
def points
|
78
79
|
end
|
@@ -89,8 +90,8 @@ module OnebusawaySDK
|
|
89
90
|
def levels=(_)
|
90
91
|
end
|
91
92
|
|
92
|
-
sig { params(length: Integer, points: String, levels: String).
|
93
|
-
def
|
93
|
+
sig { params(length: Integer, points: String, levels: String).returns(T.attached_class) }
|
94
|
+
def self.new(length:, points:, levels: nil)
|
94
95
|
end
|
95
96
|
|
96
97
|
sig { override.returns({length: Integer, points: String, levels: String}) }
|
@@ -6,8 +6,11 @@ module OnebusawaySDK
|
|
6
6
|
extend OnebusawaySDK::RequestParameters::Converter
|
7
7
|
include OnebusawaySDK::RequestParameters
|
8
8
|
|
9
|
-
sig
|
10
|
-
|
9
|
+
sig do
|
10
|
+
params(request_options: T.any(OnebusawaySDK::RequestOptions, T::Hash[Symbol, T.anything]))
|
11
|
+
.returns(T.attached_class)
|
12
|
+
end
|
13
|
+
def self.new(request_options: {})
|
11
14
|
end
|
12
15
|
|
13
16
|
sig { override.returns({request_options: OnebusawaySDK::RequestOptions}) }
|
@@ -14,8 +14,8 @@ module OnebusawaySDK
|
|
14
14
|
def data=(_)
|
15
15
|
end
|
16
16
|
|
17
|
-
sig { params(data: OnebusawaySDK::Models::StopIDsForAgencyListResponse::Data).
|
18
|
-
def
|
17
|
+
sig { params(data: OnebusawaySDK::Models::StopIDsForAgencyListResponse::Data).returns(T.attached_class) }
|
18
|
+
def self.new(data:)
|
19
19
|
end
|
20
20
|
|
21
21
|
sig { override.returns({data: OnebusawaySDK::Models::StopIDsForAgencyListResponse::Data}) }
|
@@ -49,9 +49,9 @@ module OnebusawaySDK
|
|
49
49
|
|
50
50
|
sig do
|
51
51
|
params(limit_exceeded: T::Boolean, list: T::Array[String], references: OnebusawaySDK::Models::References)
|
52
|
-
.
|
52
|
+
.returns(T.attached_class)
|
53
53
|
end
|
54
|
-
def
|
54
|
+
def self.new(limit_exceeded:, list:, references:)
|
55
55
|
end
|
56
56
|
|
57
57
|
sig do
|
@@ -6,8 +6,11 @@ module OnebusawaySDK
|
|
6
6
|
extend OnebusawaySDK::RequestParameters::Converter
|
7
7
|
include OnebusawaySDK::RequestParameters
|
8
8
|
|
9
|
-
sig
|
10
|
-
|
9
|
+
sig do
|
10
|
+
params(request_options: T.any(OnebusawaySDK::RequestOptions, T::Hash[Symbol, T.anything]))
|
11
|
+
.returns(T.attached_class)
|
12
|
+
end
|
13
|
+
def self.new(request_options: {})
|
11
14
|
end
|
12
15
|
|
13
16
|
sig { override.returns({request_options: OnebusawaySDK::RequestOptions}) }
|