onebusaway-sdk 1.2.16 → 1.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 010f16d288e13823311e0cdbd4dbb89fa7a74b6328f21ecc564bfc21df5a9aa6
4
- data.tar.gz: 9cd710c8b690f5c43410c5fa763b37eec60df08392c535eea465b37d920368b8
3
+ metadata.gz: 3b7faf38365da2308b3dc4495a4acbe4aa49869caf5d4181628c18c16da95732
4
+ data.tar.gz: 398ef4148c8702608d62be5b63cfa0a47f38aa4b110923e6224c009af89d1a0f
5
5
  SHA512:
6
- metadata.gz: 1f305b05de72a71466d6330ff4ae36573fcc932fe58c4dfe7621dd45a3645cdfd2ebbbeedfb04df4ab49fa8b6eb0a9e19fb6f0145b4d4836e555c80c798bc235
7
- data.tar.gz: a5ccf720aa0f9f1446222196a336e6cbfd2e48c5da52a9af7222eeaded2513e3fdd89669f15bc7f5ddf51722b3bd62b4e5f51ee5dc7f19892a392fbd23bc234d
6
+ metadata.gz: 81d387c5cfae69030d3764115f641a9684b4f7825f5fdb116f977a975d1fb76af97ea808ad6408dd43bde8ee5595821f63a2cc3d5e2122265a3fb99f16e0f612
7
+ data.tar.gz: 936cb208a63242ac3509b7a7ecb8e95a1aa73d816763e3b7484537ee238c4bc6d45b97ca4050c3aafedc55a4ad63875fa8b324db3ff2ecae1daa65654f831578
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.0 (2026-03-09)
4
+
5
+ Full Changelog: [v1.2.16...v1.3.0](https://github.com/OneBusAway/ruby-sdk/compare/v1.2.16...v1.3.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([ab3a7b3](https://github.com/OneBusAway/ruby-sdk/commit/ab3a7b315221fe29599ff6a337bc803e45cf117c))
10
+ * **api:** api update ([103f809](https://github.com/OneBusAway/ruby-sdk/commit/103f8096f6ee3152f20eecc3070fea4d6f6b638a))
11
+
3
12
  ## 1.2.16 (2026-03-07)
4
13
 
5
14
  Full Changelog: [v1.2.15...v1.2.16](https://github.com/OneBusAway/ruby-sdk/compare/v1.2.15...v1.2.16)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "onebusaway-sdk", "~> 1.2.16"
20
+ gem "onebusaway-sdk", "~> 1.3.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -38,12 +38,6 @@ module OnebusawaySDK
38
38
  # @return [Array<String>]
39
39
  required :service_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :serviceIds
40
40
 
41
- # @!attribute stops
42
- #
43
- # @return [Array<OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::Stop>]
44
- required :stops,
45
- -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::Stop] }
46
-
47
41
  # @!attribute stop_trip_groupings
48
42
  #
49
43
  # @return [Array<OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping>]
@@ -51,91 +45,11 @@ module OnebusawaySDK
51
45
  -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping] },
52
46
  api_name: :stopTripGroupings
53
47
 
54
- # @!attribute trips
55
- #
56
- # @return [Array<OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::Trip>]
57
- required :trips,
58
- -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::Trip] }
59
-
60
- # @!method initialize(route_id:, schedule_date:, service_ids:, stops:, stop_trip_groupings:, trips:)
48
+ # @!method initialize(route_id:, schedule_date:, service_ids:, stop_trip_groupings:)
61
49
  # @param route_id [String]
62
50
  # @param schedule_date [Integer]
63
51
  # @param service_ids [Array<String>]
64
- # @param stops [Array<OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::Stop>]
65
52
  # @param stop_trip_groupings [Array<OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping>]
66
- # @param trips [Array<OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::Trip>]
67
-
68
- class Stop < OnebusawaySDK::Internal::Type::BaseModel
69
- # @!attribute id
70
- #
71
- # @return [String]
72
- required :id, String
73
-
74
- # @!attribute lat
75
- #
76
- # @return [Float]
77
- required :lat, Float
78
-
79
- # @!attribute location_type
80
- #
81
- # @return [Integer]
82
- required :location_type, Integer, api_name: :locationType
83
-
84
- # @!attribute lon
85
- #
86
- # @return [Float]
87
- required :lon, Float
88
-
89
- # @!attribute name
90
- #
91
- # @return [String]
92
- required :name, String
93
-
94
- # @!attribute parent
95
- #
96
- # @return [String]
97
- required :parent, String
98
-
99
- # @!attribute route_ids
100
- #
101
- # @return [Array<String>]
102
- required :route_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :routeIds
103
-
104
- # @!attribute static_route_ids
105
- #
106
- # @return [Array<String>]
107
- required :static_route_ids,
108
- OnebusawaySDK::Internal::Type::ArrayOf[String],
109
- api_name: :staticRouteIds
110
-
111
- # @!attribute code
112
- #
113
- # @return [String, nil]
114
- optional :code, String
115
-
116
- # @!attribute direction
117
- #
118
- # @return [String, nil]
119
- optional :direction, String
120
-
121
- # @!attribute wheelchair_boarding
122
- #
123
- # @return [String, nil]
124
- optional :wheelchair_boarding, String, api_name: :wheelchairBoarding
125
-
126
- # @!method initialize(id:, lat:, location_type:, lon:, name:, parent:, route_ids:, static_route_ids:, code: nil, direction: nil, wheelchair_boarding: nil)
127
- # @param id [String]
128
- # @param lat [Float]
129
- # @param location_type [Integer]
130
- # @param lon [Float]
131
- # @param name [String]
132
- # @param parent [String]
133
- # @param route_ids [Array<String>]
134
- # @param static_route_ids [Array<String>]
135
- # @param code [String]
136
- # @param direction [String]
137
- # @param wheelchair_boarding [String]
138
- end
139
53
 
140
54
  class StopTripGrouping < OnebusawaySDK::Internal::Type::BaseModel
141
55
  # @!attribute direction_id
@@ -248,76 +162,6 @@ module OnebusawaySDK
248
162
  end
249
163
  end
250
164
  end
251
-
252
- class Trip < OnebusawaySDK::Internal::Type::BaseModel
253
- # @!attribute id
254
- #
255
- # @return [String]
256
- required :id, String
257
-
258
- # @!attribute route_id
259
- #
260
- # @return [String]
261
- required :route_id, String, api_name: :routeId
262
-
263
- # @!attribute service_id
264
- #
265
- # @return [String]
266
- required :service_id, String, api_name: :serviceId
267
-
268
- # @!attribute block_id
269
- #
270
- # @return [String, nil]
271
- optional :block_id, String, api_name: :blockId
272
-
273
- # @!attribute direction_id
274
- #
275
- # @return [String, nil]
276
- optional :direction_id, String, api_name: :directionId
277
-
278
- # @!attribute peak_offpeak
279
- #
280
- # @return [Integer, nil]
281
- optional :peak_offpeak, Integer, api_name: :peakOffpeak
282
-
283
- # @!attribute route_short_name
284
- #
285
- # @return [String, nil]
286
- optional :route_short_name, String, api_name: :routeShortName
287
-
288
- # @!attribute shape_id
289
- #
290
- # @return [String, nil]
291
- optional :shape_id, String, api_name: :shapeId
292
-
293
- # @!attribute time_zone
294
- #
295
- # @return [String, nil]
296
- optional :time_zone, String, api_name: :timeZone
297
-
298
- # @!attribute trip_headsign
299
- #
300
- # @return [String, nil]
301
- optional :trip_headsign, String, api_name: :tripHeadsign
302
-
303
- # @!attribute trip_short_name
304
- #
305
- # @return [String, nil]
306
- optional :trip_short_name, String, api_name: :tripShortName
307
-
308
- # @!method initialize(id:, route_id:, service_id:, block_id: nil, direction_id: nil, peak_offpeak: nil, route_short_name: nil, shape_id: nil, time_zone: nil, trip_headsign: nil, trip_short_name: nil)
309
- # @param id [String]
310
- # @param route_id [String]
311
- # @param service_id [String]
312
- # @param block_id [String]
313
- # @param direction_id [String]
314
- # @param peak_offpeak [Integer]
315
- # @param route_short_name [String]
316
- # @param shape_id [String]
317
- # @param time_zone [String]
318
- # @param trip_headsign [String]
319
- # @param trip_short_name [String]
320
- end
321
165
  end
322
166
  end
323
167
  end
@@ -4,101 +4,113 @@ module OnebusawaySDK
4
4
  module Models
5
5
  # @see OnebusawaySDK::Resources::StopsForAgency#list
6
6
  class StopsForAgencyListResponse < OnebusawaySDK::Models::ResponseWrapper
7
- # @!attribute limit_exceeded
7
+ # @!attribute data
8
8
  #
9
- # @return [Boolean]
10
- required :limit_exceeded, OnebusawaySDK::Internal::Type::Boolean, api_name: :limitExceeded
9
+ # @return [OnebusawaySDK::Models::StopsForAgencyListResponse::Data]
10
+ required :data, -> { OnebusawaySDK::Models::StopsForAgencyListResponse::Data }
11
11
 
12
- # @!attribute list
13
- #
14
- # @return [Array<OnebusawaySDK::Models::StopsForAgencyListResponse::List>]
15
- required :list,
16
- -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::Models::StopsForAgencyListResponse::List] }
17
-
18
- # @!attribute references
19
- #
20
- # @return [OnebusawaySDK::Models::References]
21
- required :references, -> { OnebusawaySDK::References }
22
-
23
- # @!attribute out_of_range
24
- #
25
- # @return [Boolean, nil]
26
- optional :out_of_range, OnebusawaySDK::Internal::Type::Boolean, api_name: :outOfRange
27
-
28
- # @!method initialize(limit_exceeded:, list:, references:, out_of_range: nil)
29
- # @param limit_exceeded [Boolean]
30
- # @param list [Array<OnebusawaySDK::Models::StopsForAgencyListResponse::List>]
31
- # @param references [OnebusawaySDK::Models::References]
32
- # @param out_of_range [Boolean]
33
-
34
- class List < OnebusawaySDK::Internal::Type::BaseModel
35
- # @!attribute id
36
- #
37
- # @return [String]
38
- required :id, String
39
-
40
- # @!attribute lat
41
- #
42
- # @return [Float]
43
- required :lat, Float
44
-
45
- # @!attribute location_type
46
- #
47
- # @return [Integer]
48
- required :location_type, Integer, api_name: :locationType
49
-
50
- # @!attribute lon
51
- #
52
- # @return [Float]
53
- required :lon, Float
54
-
55
- # @!attribute name
56
- #
57
- # @return [String]
58
- required :name, String
59
-
60
- # @!attribute parent
61
- #
62
- # @return [String]
63
- required :parent, String
64
-
65
- # @!attribute route_ids
66
- #
67
- # @return [Array<String>]
68
- required :route_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :routeIds
12
+ # @!method initialize(data:)
13
+ # @param data [OnebusawaySDK::Models::StopsForAgencyListResponse::Data]
69
14
 
70
- # @!attribute static_route_ids
15
+ class Data < OnebusawaySDK::Internal::Type::BaseModel
16
+ # @!attribute limit_exceeded
71
17
  #
72
- # @return [Array<String>]
73
- required :static_route_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :staticRouteIds
18
+ # @return [Boolean]
19
+ required :limit_exceeded, OnebusawaySDK::Internal::Type::Boolean, api_name: :limitExceeded
74
20
 
75
- # @!attribute code
21
+ # @!attribute list
76
22
  #
77
- # @return [String, nil]
78
- optional :code, String
23
+ # @return [Array<OnebusawaySDK::Models::StopsForAgencyListResponse::Data::List>]
24
+ required :list,
25
+ -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::Models::StopsForAgencyListResponse::Data::List] }
79
26
 
80
- # @!attribute direction
27
+ # @!attribute references
81
28
  #
82
- # @return [String, nil]
83
- optional :direction, String
29
+ # @return [OnebusawaySDK::Models::References]
30
+ required :references, -> { OnebusawaySDK::References }
84
31
 
85
- # @!attribute wheelchair_boarding
32
+ # @!attribute out_of_range
86
33
  #
87
- # @return [String, nil]
88
- optional :wheelchair_boarding, String, api_name: :wheelchairBoarding
89
-
90
- # @!method initialize(id:, lat:, location_type:, lon:, name:, parent:, route_ids:, static_route_ids:, code: nil, direction: nil, wheelchair_boarding: nil)
91
- # @param id [String]
92
- # @param lat [Float]
93
- # @param location_type [Integer]
94
- # @param lon [Float]
95
- # @param name [String]
96
- # @param parent [String]
97
- # @param route_ids [Array<String>]
98
- # @param static_route_ids [Array<String>]
99
- # @param code [String]
100
- # @param direction [String]
101
- # @param wheelchair_boarding [String]
34
+ # @return [Boolean, nil]
35
+ optional :out_of_range, OnebusawaySDK::Internal::Type::Boolean, api_name: :outOfRange
36
+
37
+ # @!method initialize(limit_exceeded:, list:, references:, out_of_range: nil)
38
+ # @param limit_exceeded [Boolean]
39
+ # @param list [Array<OnebusawaySDK::Models::StopsForAgencyListResponse::Data::List>]
40
+ # @param references [OnebusawaySDK::Models::References]
41
+ # @param out_of_range [Boolean]
42
+
43
+ class List < OnebusawaySDK::Internal::Type::BaseModel
44
+ # @!attribute id
45
+ #
46
+ # @return [String]
47
+ required :id, String
48
+
49
+ # @!attribute lat
50
+ #
51
+ # @return [Float]
52
+ required :lat, Float
53
+
54
+ # @!attribute location_type
55
+ #
56
+ # @return [Integer]
57
+ required :location_type, Integer, api_name: :locationType
58
+
59
+ # @!attribute lon
60
+ #
61
+ # @return [Float]
62
+ required :lon, Float
63
+
64
+ # @!attribute name
65
+ #
66
+ # @return [String]
67
+ required :name, String
68
+
69
+ # @!attribute parent
70
+ #
71
+ # @return [String]
72
+ required :parent, String
73
+
74
+ # @!attribute route_ids
75
+ #
76
+ # @return [Array<String>]
77
+ required :route_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :routeIds
78
+
79
+ # @!attribute static_route_ids
80
+ #
81
+ # @return [Array<String>]
82
+ required :static_route_ids,
83
+ OnebusawaySDK::Internal::Type::ArrayOf[String],
84
+ api_name: :staticRouteIds
85
+
86
+ # @!attribute code
87
+ #
88
+ # @return [String, nil]
89
+ optional :code, String
90
+
91
+ # @!attribute direction
92
+ #
93
+ # @return [String, nil]
94
+ optional :direction, String
95
+
96
+ # @!attribute wheelchair_boarding
97
+ #
98
+ # @return [String, nil]
99
+ optional :wheelchair_boarding, String, api_name: :wheelchairBoarding
100
+
101
+ # @!method initialize(id:, lat:, location_type:, lon:, name:, parent:, route_ids:, static_route_ids:, code: nil, direction: nil, wheelchair_boarding: nil)
102
+ # @param id [String]
103
+ # @param lat [Float]
104
+ # @param location_type [Integer]
105
+ # @param lon [Float]
106
+ # @param name [String]
107
+ # @param parent [String]
108
+ # @param route_ids [Array<String>]
109
+ # @param static_route_ids [Array<String>]
110
+ # @param code [String]
111
+ # @param direction [String]
112
+ # @param wheelchair_boarding [String]
113
+ end
102
114
  end
103
115
  end
104
116
  end
@@ -45,28 +45,16 @@ module OnebusawaySDK
45
45
  # @return [Integer]
46
46
  required :last_update_time, Integer, api_name: :lastUpdateTime
47
47
 
48
- # @!attribute location
49
- #
50
- # @return [OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::Location]
51
- required :location, -> { OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::Location }
52
-
53
- # @!attribute trip_id
54
- #
55
- # @return [String]
56
- required :trip_id, String, api_name: :tripId
57
-
58
- # @!attribute trip_status
59
- #
60
- # @return [OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus]
61
- required :trip_status,
62
- -> { OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus },
63
- api_name: :tripStatus
64
-
65
48
  # @!attribute vehicle_id
66
49
  #
67
50
  # @return [String]
68
51
  required :vehicle_id, String, api_name: :vehicleId
69
52
 
53
+ # @!attribute location
54
+ #
55
+ # @return [OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::Location, nil]
56
+ optional :location, -> { OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::Location }
57
+
70
58
  # @!attribute occupancy_capacity
71
59
  #
72
60
  # @return [Integer, nil]
@@ -92,18 +80,30 @@ module OnebusawaySDK
92
80
  # @return [String, nil]
93
81
  optional :status, String
94
82
 
95
- # @!method initialize(last_location_update_time:, last_update_time:, location:, trip_id:, trip_status:, vehicle_id:, occupancy_capacity: nil, occupancy_count: nil, occupancy_status: nil, phase: nil, status: nil)
83
+ # @!attribute trip_id
84
+ #
85
+ # @return [String, nil]
86
+ optional :trip_id, String, api_name: :tripId
87
+
88
+ # @!attribute trip_status
89
+ #
90
+ # @return [OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus, nil]
91
+ optional :trip_status,
92
+ -> { OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus },
93
+ api_name: :tripStatus
94
+
95
+ # @!method initialize(last_location_update_time:, last_update_time:, vehicle_id:, location: nil, occupancy_capacity: nil, occupancy_count: nil, occupancy_status: nil, phase: nil, status: nil, trip_id: nil, trip_status: nil)
96
96
  # @param last_location_update_time [Integer]
97
97
  # @param last_update_time [Integer]
98
- # @param location [OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::Location]
99
- # @param trip_id [String]
100
- # @param trip_status [OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus]
101
98
  # @param vehicle_id [String]
99
+ # @param location [OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::Location]
102
100
  # @param occupancy_capacity [Integer]
103
101
  # @param occupancy_count [Integer]
104
102
  # @param occupancy_status [String]
105
103
  # @param phase [String]
106
104
  # @param status [String]
105
+ # @param trip_id [String]
106
+ # @param trip_status [OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus]
107
107
 
108
108
  # @see OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List#location
109
109
  class Location < OnebusawaySDK::Internal::Type::BaseModel
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OnebusawaySDK
4
- VERSION = "1.2.16"
4
+ VERSION = "1.3.0"
5
5
  end