Class: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry
- Inherits:
-
Internal::Type::BaseModel
show all
- Defined in:
- lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb,
sig/onebusaway_sdk/models/trip_detail_retrieve_response.rbs
Overview
Defined Under Namespace
Classes: Schedule, Status
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/trip_detail_retrieve_response.rb', line 65
|
Instance Attribute Details
#frequency ⇒ String?
40
|
# File 'lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb', line 40
optional :frequency, String, nil?: true
|
45
46
47
|
# File 'lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb', line 45
optional :schedule,
-> { OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule },
nil?: true
|
#service_date ⇒ Integer?
52
|
# File 'lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb', line 52
optional :service_date, Integer, api_name: :serviceDate
|
#situation_ids ⇒ Array<String>?
57
|
# File 'lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb', line 57
optional :situation_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :situationIds
|
Trip-specific status for the arriving transit vehicle.
63
|
# File 'lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb', line 63
optional :status, -> { OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Status }
|
#trip_id ⇒ String
35
|
# File 'lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb', line 35
required :trip_id, String, api_name: :tripId
|
Instance Method Details
#to_hash ⇒ {
82
|
# File 'sig/onebusaway_sdk/models/trip_detail_retrieve_response.rbs', line 82
def to_hash: -> {
|