Class: OnebusawaySDK::Models::BlockRetrieveResponse::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OnebusawaySDK::Models::BlockRetrieveResponse::Data
- Defined in:
- lib/onebusaway_sdk/models/block_retrieve_response.rb
Defined Under Namespace
Classes: Entry
Instance Attribute Summary collapse
- #entry ⇒ OnebusawaySDK::Models::BlockRetrieveResponse::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 |
# File 'lib/onebusaway_sdk/models/block_retrieve_response.rb', line 15 class Data < OnebusawaySDK::Internal::Type::BaseModel # @!attribute entry # # @return [OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry] required :entry, -> { OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry } # @!attribute references # # @return [OnebusawaySDK::Models::References] required :references, -> { OnebusawaySDK::References } # @!method initialize(entry:, references:) # @param entry [OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry] # @param references [OnebusawaySDK::Models::References] # @see OnebusawaySDK::Models::BlockRetrieveResponse::Data#entry class Entry < OnebusawaySDK::Internal::Type::BaseModel # @!attribute id # # @return [String] required :id, String # @!attribute configurations # # @return [Array<OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry::Configuration>] required :configurations, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry::Configuration] } # @!method initialize(id:, configurations:) # @param id [String] # @param configurations [Array<OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry::Configuration>] class Configuration < OnebusawaySDK::Internal::Type::BaseModel # @!attribute active_service_ids # # @return [Array<String>] required :active_service_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :activeServiceIds # @!attribute trips # # @return [Array<OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry::Configuration::Trip>] required :trips, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry::Configuration::Trip] } # @!attribute inactive_service_ids # # @return [Array<String>, nil] optional :inactive_service_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :inactiveServiceIds # @!method initialize(active_service_ids:, trips:, inactive_service_ids: nil) # @param active_service_ids [Array<String>] # @param trips [Array<OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry::Configuration::Trip>] # @param inactive_service_ids [Array<String>] class Trip < OnebusawaySDK::Internal::Type::BaseModel # @!attribute accumulated_slack_time # # @return [Float] required :accumulated_slack_time, Float, api_name: :accumulatedSlackTime # @!attribute block_stop_times # # @return [Array<OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry::Configuration::Trip::BlockStopTime>] required :block_stop_times, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry::Configuration::Trip::BlockStopTime] }, api_name: :blockStopTimes # @!attribute distance_along_block # # @return [Float] required :distance_along_block, Float, api_name: :distanceAlongBlock # @!attribute trip_id # # @return [String] required :trip_id, String, api_name: :tripId # @!method initialize(accumulated_slack_time:, block_stop_times:, distance_along_block:, trip_id:) # @param accumulated_slack_time [Float] # @param block_stop_times [Array<OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry::Configuration::Trip::BlockStopTime>] # @param distance_along_block [Float] # @param trip_id [String] class BlockStopTime < OnebusawaySDK::Internal::Type::BaseModel # @!attribute accumulated_slack_time # # @return [Float] required :accumulated_slack_time, Float, api_name: :accumulatedSlackTime # @!attribute block_sequence # # @return [Integer] required :block_sequence, Integer, api_name: :blockSequence # @!attribute distance_along_block # # @return [Float] required :distance_along_block, Float, api_name: :distanceAlongBlock # @!attribute stop_time # # @return [OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry::Configuration::Trip::BlockStopTime::StopTime] required :stop_time, -> { OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry::Configuration::Trip::BlockStopTime::StopTime }, api_name: :stopTime # @!method initialize(accumulated_slack_time:, block_sequence:, distance_along_block:, stop_time:) # @param accumulated_slack_time [Float] # @param block_sequence [Integer] # @param distance_along_block [Float] # @param stop_time [OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry::Configuration::Trip::BlockStopTime::StopTime] # @see OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry::Configuration::Trip::BlockStopTime#stop_time class StopTime < OnebusawaySDK::Internal::Type::BaseModel # @!attribute arrival_time # # @return [Integer] required :arrival_time, Integer, api_name: :arrivalTime # @!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 drop_off_type # # @return [Integer, nil] optional :drop_off_type, Integer, api_name: :dropOffType # @!attribute pickup_type # # @return [Integer, nil] optional :pickup_type, Integer, api_name: :pickupType # @!method initialize(arrival_time:, departure_time:, stop_id:, drop_off_type: nil, pickup_type: nil) # @param arrival_time [Integer] # @param departure_time [Integer] # @param stop_id [String] # @param drop_off_type [Integer] # @param pickup_type [Integer] end end end end end end |
Instance Attribute Details
#entry ⇒ OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry
19 |
# File 'lib/onebusaway_sdk/models/block_retrieve_response.rb', line 19 required :entry, -> { OnebusawaySDK::Models::BlockRetrieveResponse::Data::Entry } |
#references ⇒ OnebusawaySDK::Models::References
24 |
# File 'lib/onebusaway_sdk/models/block_retrieve_response.rb', line 24 required :references, -> { OnebusawaySDK::References } |