Class: OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data
- Defined in:
- lib/onebusaway_sdk/models/schedule_for_stop_retrieve_response.rb
Defined Under Namespace
Classes: Entry
Instance Attribute Summary collapse
- #entry ⇒ OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry
- #references ⇒ OnebusawaySDK::Models::References
Instance Method Summary collapse
- #initialize(entry: , references: ) ⇒ 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: , references: ) ⇒ 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 |
# File 'lib/onebusaway_sdk/models/schedule_for_stop_retrieve_response.rb', line 15 class Data < OnebusawaySDK::Internal::Type::BaseModel # @!attribute entry # # @return [OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry] required :entry, -> { OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry } # @!attribute references # # @return [OnebusawaySDK::Models::References] required :references, -> { OnebusawaySDK::References } # @!method initialize(entry:, references:) # @param entry [OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry] # @param references [OnebusawaySDK::Models::References] # @see OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data#entry class Entry < OnebusawaySDK::Internal::Type::BaseModel # @!attribute date # # @return [Integer] required :date, Integer # @!attribute stop_id # # @return [String] required :stop_id, String, api_name: :stopId # @!attribute stop_route_schedules # # @return [Array<OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule>] required :stop_route_schedules, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule] }, api_name: :stopRouteSchedules # @!method initialize(date:, stop_id:, stop_route_schedules:) # @param date [Integer] # @param stop_id [String] # @param stop_route_schedules [Array<OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule>] class StopRouteSchedule < OnebusawaySDK::Internal::Type::BaseModel # @!attribute route_id # # @return [String] required :route_id, String, api_name: :routeId # @!attribute stop_route_direction_schedules # # @return [Array<OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule>] required :stop_route_direction_schedules, -> do OnebusawaySDK::Internal::Type::ArrayOf[ OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule ] end, api_name: :stopRouteDirectionSchedules # @!method initialize(route_id:, stop_route_direction_schedules:) # @param route_id [String] # @param stop_route_direction_schedules [Array<OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule>] 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 end end end |
Instance Attribute Details
#entry ⇒ OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry
19 |
# File 'lib/onebusaway_sdk/models/schedule_for_stop_retrieve_response.rb', line 19 required :entry, -> { OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry } |
#references ⇒ OnebusawaySDK::Models::References
24 |
# File 'lib/onebusaway_sdk/models/schedule_for_stop_retrieve_response.rb', line 24 required :references, -> { OnebusawaySDK::References } |