Class: OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule
- Defined in:
- lib/onebusaway_sdk/models/schedule_for_stop_retrieve_response.rb
Defined Under Namespace
Classes: ScheduleFrequency, ScheduleStopTime
Instance Attribute Summary collapse
- #schedule_frequencies ⇒ Array<OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule::ScheduleFrequency>?
- #schedule_stop_times ⇒ Array<OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule::ScheduleStopTime>
- #trip_headsign ⇒ String
Instance Method Summary collapse
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(arrival_enabled: , arrival_time: , departure_enabled: , departure_time: , service_id: , trip_id: , stop_headsign: nil) ⇒ Object
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 |
# File 'lib/onebusaway_sdk/models/schedule_for_stop_retrieve_response.rb', line 75 class StopRouteDirectionSchedule < OnebusawaySDK::Internal::Type::BaseModel # @!attribute schedule_stop_times # # @return [Array<OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule::ScheduleStopTime>] required :schedule_stop_times, -> do OnebusawaySDK::Internal::Type::ArrayOf[ OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule::ScheduleStopTime ] end, api_name: :scheduleStopTimes # @!attribute trip_headsign # # @return [String] required :trip_headsign, String, api_name: :tripHeadsign # @!attribute schedule_frequencies # # @return [Array<OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule::ScheduleFrequency>, nil] optional :schedule_frequencies, -> do OnebusawaySDK::Internal::Type::ArrayOf[ OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule::ScheduleFrequency ] end, api_name: :scheduleFrequencies # @!method initialize(schedule_stop_times:, trip_headsign:, schedule_frequencies: nil) # @param schedule_stop_times [Array<OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule::ScheduleStopTime>] # @param trip_headsign [String] # @param schedule_frequencies [Array<OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule::ScheduleFrequency>] class ScheduleStopTime < 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 service_id # # @return [String] required :service_id, String, api_name: :serviceId # @!attribute trip_id # # @return [String] required :trip_id, String, api_name: :tripId # @!attribute stop_headsign # # @return [String, nil] optional :stop_headsign, String, api_name: :stopHeadsign # @!method initialize(arrival_enabled:, arrival_time:, departure_enabled:, departure_time:, service_id:, trip_id:, stop_headsign: nil) # @param arrival_enabled [Boolean] # @param arrival_time [Integer] # @param departure_enabled [Boolean] # @param departure_time [Integer] # @param service_id [String] # @param trip_id [String] # @param stop_headsign [String] end class ScheduleFrequency < OnebusawaySDK::Internal::Type::BaseModel # @!attribute end_time # # @return [Integer] required :end_time, Integer, api_name: :endTime # @!attribute headway # # @return [Integer] required :headway, Integer # @!attribute service_date # # @return [Integer] required :service_date, Integer, api_name: :serviceDate # @!attribute service_id # # @return [String] required :service_id, String, api_name: :serviceId # @!attribute start_time # # @return [Integer] required :start_time, Integer, api_name: :startTime # @!attribute trip_id # # @return [String] required :trip_id, String, api_name: :tripId # @!method initialize(end_time:, headway:, service_date:, service_id:, start_time:, trip_id:) # @param end_time [Integer] # @param headway [Integer] # @param service_date [Integer] # @param service_id [String] # @param start_time [Integer] # @param trip_id [String] end end |
Instance Attribute Details
#schedule_frequencies ⇒ Array<OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule::ScheduleFrequency>?
95 96 97 98 99 100 101 |
# File 'lib/onebusaway_sdk/models/schedule_for_stop_retrieve_response.rb', line 95 optional :schedule_frequencies, -> do OnebusawaySDK::Internal::Type::ArrayOf[ OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule::ScheduleFrequency ] end, api_name: :scheduleFrequencies |
#schedule_stop_times ⇒ Array<OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule::ScheduleStopTime>
79 80 81 82 83 84 85 |
# File 'lib/onebusaway_sdk/models/schedule_for_stop_retrieve_response.rb', line 79 required :schedule_stop_times, -> do OnebusawaySDK::Internal::Type::ArrayOf[ OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule::ScheduleStopTime ] end, api_name: :scheduleStopTimes |
#trip_headsign ⇒ String
90 |
# File 'lib/onebusaway_sdk/models/schedule_for_stop_retrieve_response.rb', line 90 required :trip_headsign, String, api_name: :tripHeadsign |