Class: OnebusawaySDK::Models::References

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onebusaway_sdk/models/references.rb

Defined Under Namespace

Classes: Agency, Route, Situation, Stop, StopTime, Trip

Instance Attribute Summary collapse

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_time: nil, departure_time: nil, distance_along_trip: nil, historical_occupancy: nil, stop_headsign: nil, stop_id: nil) ⇒ Object

Parameters:

  • arrival_time (Integer) (defaults to: nil)
  • departure_time (Integer) (defaults to: nil)
  • distance_along_trip (Float) (defaults to: nil)
  • historical_occupancy (String) (defaults to: nil)
  • stop_headsign (String) (defaults to: nil)
  • stop_id (String) (defaults to: nil)


# File 'lib/onebusaway_sdk/models/references.rb', line 97

Instance Attribute Details

#agenciesArray<OnebusawaySDK::Models::References::Agency>



9
# File 'lib/onebusaway_sdk/models/references.rb', line 9

required :agencies, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::References::Agency] }

#routesArray<OnebusawaySDK::Models::References::Route>



14
# File 'lib/onebusaway_sdk/models/references.rb', line 14

required :routes, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::References::Route] }

#situationsArray<OnebusawaySDK::Models::References::Situation>



19
# File 'lib/onebusaway_sdk/models/references.rb', line 19

required :situations, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::References::Situation] }

#stop_timesArray<OnebusawaySDK::Models::References::StopTime>



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

#stopsArray<OnebusawaySDK::Models::References::Stop>



24
# File 'lib/onebusaway_sdk/models/references.rb', line 24

required :stops, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::References::Stop] }

#tripsArray<OnebusawaySDK::Models::References::Trip>



36
# File 'lib/onebusaway_sdk/models/references.rb', line 36

required :trips, -> { OnebusawaySDK::Internal::Type::ArrayOf[OnebusawaySDK::References::Trip] }