Class: OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping
Defined Under Namespace
Classes: TripsWithStopTime
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(route_id:, schedule_date:, service_ids:, stop_trip_groupings:) ⇒ Object
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
|
# File 'lib/onebusaway_sdk/models/schedule_for_route_retrieve_response.rb', line 54
class StopTripGrouping < OnebusawaySDK::Internal::Type::BaseModel
required :direction_id, String, api_name: :directionId
required :stop_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :stopIds
required :trip_headsigns, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :tripHeadsigns
required :trip_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :tripIds
optional :trips_with_stop_times,
-> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping::TripsWithStopTime] },
api_name: :tripsWithStopTimes
class TripsWithStopTime < OnebusawaySDK::Internal::Type::BaseModel
required :stop_times,
-> do
OnebusawaySDK::Internal::Type::ArrayOf[
OnebusawaySDK::Models::ScheduleForRouteRetrieveResponse::Data::Entry::StopTripGrouping::TripsWithStopTime::StopTime
]
end,
api_name: :stopTimes
required :trip_id, String, api_name: :tripId
class StopTime < OnebusawaySDK::Internal::Type::BaseModel
required :arrival_enabled, OnebusawaySDK::Internal::Type::Boolean, api_name: :arrivalEnabled
required :arrival_time, Integer, api_name: :arrivalTime
required :departure_enabled,
OnebusawaySDK::Internal::Type::Boolean,
api_name: :departureEnabled
required :departure_time, Integer, api_name: :departureTime
required :stop_id, String, api_name: :stopId
required :trip_id, String, api_name: :tripId
optional :service_id, String, api_name: :serviceId
optional :stop_headsign, String, api_name: :stopHeadsign
end
end
end
|
Instance Attribute Details
#direction_id ⇒ String
58
|
# File 'lib/onebusaway_sdk/models/schedule_for_route_retrieve_response.rb', line 58
required :direction_id, String, api_name: :directionId
|
#stop_ids ⇒ Array<String>
63
|
# File 'lib/onebusaway_sdk/models/schedule_for_route_retrieve_response.rb', line 63
required :stop_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :stopIds
|
#trip_headsigns ⇒ Array<String>
68
|
# File 'lib/onebusaway_sdk/models/schedule_for_route_retrieve_response.rb', line 68
required :trip_headsigns, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :tripHeadsigns
|
#trip_ids ⇒ Array<String>
73
|
# File 'lib/onebusaway_sdk/models/schedule_for_route_retrieve_response.rb', line 73
required :trip_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :tripIds
|