Class: OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data
- Defined in:
- lib/onebusaway_sdk/models/schedule_for_route_retrieve_response.rb
Defined Under Namespace
Classes: Entry
Instance Attribute Summary collapse
Instance Method Summary collapse
- #initialize(entry: ) ⇒ Object constructor
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(entry: ) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 |
# File 'lib/onebusaway_sdk/models/schedule_for_route_retrieve_response.rb', line 15 class Data < OnebusawaySDK::Internal::Type::BaseModel # @!attribute entry # # @return [OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry] required :entry, -> { OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry } # @!method initialize(entry:) # @param entry [OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry] # @see OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data#entry class Entry < OnebusawaySDK::Internal::Type::BaseModel # @!attribute route_id # # @return [String] required :route_id, String, api_name: :routeId # @!attribute schedule_date # # @return [Integer] required :schedule_date, Integer, api_name: :scheduleDate # @!attribute service_ids # # @return [Array<String>] required :service_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :serviceIds # @!attribute stops # # @return [Array<OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::Stop>] required :stops, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::Stop] } # @!attribute stop_trip_groupings # # @return [Array<OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping>] required :stop_trip_groupings, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping] }, api_name: :stopTripGroupings # @!attribute trips # # @return [Array<OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::Trip>] required :trips, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::Trip] } # @!method initialize(route_id:, schedule_date:, service_ids:, stops:, stop_trip_groupings:, trips:) # @param route_id [String] # @param schedule_date [Integer] # @param service_ids [Array<String>] # @param stops [Array<OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::Stop>] # @param stop_trip_groupings [Array<OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping>] # @param trips [Array<OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::Trip>] class Stop < OnebusawaySDK::Internal::Type::BaseModel # @!attribute id # # @return [String] required :id, String # @!attribute lat # # @return [Float] required :lat, Float # @!attribute location_type # # @return [Integer] required :location_type, Integer, api_name: :locationType # @!attribute lon # # @return [Float] required :lon, Float # @!attribute name # # @return [String] required :name, String # @!attribute parent # # @return [String] required :parent, String # @!attribute route_ids # # @return [Array<String>] required :route_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :routeIds # @!attribute static_route_ids # # @return [Array<String>] required :static_route_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :staticRouteIds # @!attribute code # # @return [String, nil] optional :code, String # @!attribute direction # # @return [String, nil] optional :direction, String # @!attribute wheelchair_boarding # # @return [String, nil] optional :wheelchair_boarding, String, api_name: :wheelchairBoarding # @!method initialize(id:, lat:, location_type:, lon:, name:, parent:, route_ids:, static_route_ids:, code: nil, direction: nil, wheelchair_boarding: nil) # @param id [String] # @param lat [Float] # @param location_type [Integer] # @param lon [Float] # @param name [String] # @param parent [String] # @param route_ids [Array<String>] # @param static_route_ids [Array<String>] # @param code [String] # @param direction [String] # @param wheelchair_boarding [String] end class StopTripGrouping < OnebusawaySDK::Internal::Type::BaseModel # @!attribute direction_id # # @return [String] required :direction_id, String, api_name: :directionId # @!attribute stop_ids # # @return [Array<String>] required :stop_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :stopIds # @!attribute trip_headsigns # # @return [Array<String>] required :trip_headsigns, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :tripHeadsigns # @!attribute trip_ids # # @return [Array<String>] required :trip_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :tripIds # @!attribute trips_with_stop_times # # @return [Array<OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping::TripsWithStopTime>, nil] optional :trips_with_stop_times, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping::TripsWithStopTime] }, api_name: :tripsWithStopTimes # @!method initialize(direction_id:, stop_ids:, trip_headsigns:, trip_ids:, trips_with_stop_times: nil) # @param direction_id [String] # @param stop_ids [Array<String>] # @param trip_headsigns [Array<String>] # @param trip_ids [Array<String>] # @param trips_with_stop_times [Array<OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping::TripsWithStopTime>] class TripsWithStopTime < OnebusawaySDK::Internal::Type::BaseModel # @!attribute stop_times # # @return [Array<OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping::TripsWithStopTime::StopTime>] required :stop_times, -> do OnebusawaySDK::Internal::Type::ArrayOf[ OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping::TripsWithStopTime::StopTime ] end, api_name: :stopTimes # @!attribute trip_id # # @return [String] required :trip_id, String, api_name: :tripId # @!method initialize(stop_times:, trip_id:) # @param stop_times [Array<OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping::TripsWithStopTime::StopTime>] # @param trip_id [String] class StopTime < OnebusawaySDK::Internal::Type::BaseModel # @!attribute arrival_enabled # # @return [Boolean] required :arrival_enabled, OnebusawaySDK::Internal::Type::Boolean, api_name: :arrivalEnabled # @!attribute arrival_time # # @return [Integer] required :arrival_time, Integer, api_name: :arrivalTime # @!attribute departure_enabled # # @return [Boolean] required :departure_enabled, OnebusawaySDK::Internal::Type::Boolean, api_name: :departureEnabled # @!attribute departure_time # # @return [Integer] required :departure_time, Integer, api_name: :departureTime # @!attribute stop_id # # @return [String] required :stop_id, String, api_name: :stopId # @!attribute trip_id # # @return [String] required :trip_id, String, api_name: :tripId # @!attribute service_id # # @return [String, nil] optional :service_id, String, api_name: :serviceId # @!attribute stop_headsign # # @return [String, nil] optional :stop_headsign, String, api_name: :stopHeadsign # @!method initialize(arrival_enabled:, arrival_time:, departure_enabled:, departure_time:, stop_id:, trip_id:, service_id: nil, stop_headsign: nil) # @param arrival_enabled [Boolean] # @param arrival_time [Integer] # @param departure_enabled [Boolean] # @param departure_time [Integer] # @param stop_id [String] # @param trip_id [String] # @param service_id [String] # @param stop_headsign [String] end end end class Trip < OnebusawaySDK::Internal::Type::BaseModel # @!attribute id # # @return [String] required :id, String # @!attribute route_id # # @return [String] required :route_id, String, api_name: :routeId # @!attribute service_id # # @return [String] required :service_id, String, api_name: :serviceId # @!attribute block_id # # @return [String, nil] optional :block_id, String, api_name: :blockId # @!attribute direction_id # # @return [String, nil] optional :direction_id, String, api_name: :directionId # @!attribute peak_offpeak # # @return [Integer, nil] optional :peak_offpeak, Integer, api_name: :peakOffpeak # @!attribute route_short_name # # @return [String, nil] optional :route_short_name, String, api_name: :routeShortName # @!attribute shape_id # # @return [String, nil] optional :shape_id, String, api_name: :shapeId # @!attribute time_zone # # @return [String, nil] optional :time_zone, String, api_name: :timeZone # @!attribute trip_headsign # # @return [String, nil] optional :trip_headsign, String, api_name: :tripHeadsign # @!attribute trip_short_name # # @return [String, nil] optional :trip_short_name, String, api_name: :tripShortName # @!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) # @param id [String] # @param route_id [String] # @param service_id [String] # @param block_id [String] # @param direction_id [String] # @param peak_offpeak [Integer] # @param route_short_name [String] # @param shape_id [String] # @param time_zone [String] # @param trip_headsign [String] # @param trip_short_name [String] end end end |
Instance Attribute Details
#entry ⇒ OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry
19 |
# File 'lib/onebusaway_sdk/models/schedule_for_route_retrieve_response.rb', line 19 required :entry, -> { OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry } |