Class: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry

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

Overview

See Also:

Defined Under Namespace

Classes: Schedule, Status

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/trip_for_vehicle_retrieve_response.rb', line 62

Instance Attribute Details

#frequencyString?

Returns:

  • (String, nil)


40
# File 'lib/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rb', line 40

optional :frequency, String, nil?: true

#scheduleOnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule?



45
# File 'lib/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rb', line 45

optional :schedule, -> { OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule }

#service_dateInteger?

Returns:

  • (Integer, nil)


50
# File 'lib/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rb', line 50

optional :service_date, Integer, api_name: :serviceDate

#situation_idsArray<String>?

Returns:

  • (Array<String>, nil)


55
# File 'lib/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rb', line 55

optional :situation_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :situationIds

#statusOnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Status?



60
# File 'lib/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rb', line 60

optional :status, -> { OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Status }

#trip_idString

Returns:

  • (String)


35
# File 'lib/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rb', line 35

required :trip_id, String, api_name: :tripId