Class: OnebusawaySDK::Models::References
Defined Under Namespace
Classes: Agency, Route, Situation, Stop, StopTime, Trip
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(arrival_time: nil, departure_time: nil, distance_along_trip: nil, historical_occupancy: nil, stop_headsign: nil, stop_id: nil) ⇒ Object
|
# File 'lib/onebusaway_sdk/models/references.rb', line 97
|
Instance Attribute Details
9
|
# File 'lib/onebusaway_sdk/models/references.rb', line 9
required :agencies, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::References::Agency] }
|
14
|
# File 'lib/onebusaway_sdk/models/references.rb', line 14
required :routes, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::References::Route] }
|
19
|
# File 'lib/onebusaway_sdk/models/references.rb', line 19
required :situations, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::References::Situation] }
|
29
30
31
|
# File 'lib/onebusaway_sdk/models/references.rb', line 29
required :stop_times,
-> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::References::StopTime] },
api_name: :stopTimes
|
24
|
# File 'lib/onebusaway_sdk/models/references.rb', line 24
required :stops, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::References::Stop] }
|
36
|
# File 'lib/onebusaway_sdk/models/references.rb', line 36
required :trips, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::References::Trip] }
|
Instance Method Details
#to_hash ⇒ {
35
|
# File 'sig/onebusaway_sdk/models/references.rbs', line 35
def to_hash: -> {
|