Class: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule::StopTime

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

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(next_trip_id: , previous_trip_id: , stop_times: , time_zone: , frequency: nil) ⇒ Object

Parameters:



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
# File 'lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb', line 106

class StopTime < OnebusawaySDK::Internal::Type::BaseModel
  # @!attribute arrival_time
  #
  #   @return [Integer, nil]
  optional :arrival_time, Integer, api_name: :arrivalTime

  # @!attribute departure_time
  #
  #   @return [Integer, nil]
  optional :departure_time, Integer, api_name: :departureTime

  # @!attribute distance_along_trip
  #
  #   @return [Float, nil]
  optional :distance_along_trip, Float, api_name: :distanceAlongTrip

  # @!attribute historical_occupancy
  #
  #   @return [String, nil]
  optional :historical_occupancy, String, api_name: :historicalOccupancy

  # @!attribute stop_headsign
  #
  #   @return [String, nil]
  optional :stop_headsign, String, api_name: :stopHeadsign

  # @!attribute stop_id
  #
  #   @return [String, nil]
  optional :stop_id, String, api_name: :stopId

  # @!method initialize(arrival_time: nil, departure_time: nil, distance_along_trip: nil, historical_occupancy: nil, stop_headsign: nil, stop_id: nil)
  #   @param arrival_time [Integer]
  #   @param departure_time [Integer]
  #   @param distance_along_trip [Float]
  #   @param historical_occupancy [String]
  #   @param stop_headsign [String]
  #   @param stop_id [String]
end

Instance Attribute Details

#arrival_timeInteger?

Returns:

  • (Integer, nil)


110
# File 'lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb', line 110

optional :arrival_time, Integer, api_name: :arrivalTime

#departure_timeInteger?

Returns:

  • (Integer, nil)


115
# File 'lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb', line 115

optional :departure_time, Integer, api_name: :departureTime

#distance_along_tripFloat?

Returns:

  • (Float, nil)


120
# File 'lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb', line 120

optional :distance_along_trip, Float, api_name: :distanceAlongTrip

#historical_occupancyString?

Returns:

  • (String, nil)


125
# File 'lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb', line 125

optional :historical_occupancy, String, api_name: :historicalOccupancy

#stop_headsignString?

Returns:

  • (String, nil)


130
# File 'lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb', line 130

optional :stop_headsign, String, api_name: :stopHeadsign

#stop_idString?

Returns:

  • (String, nil)


135
# File 'lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb', line 135

optional :stop_id, String, api_name: :stopId