Class: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule::StopTime

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onebusaway_sdk/models/trips_for_route_list_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:



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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# File 'lib/onebusaway_sdk/models/trips_for_route_list_response.rb', line 120

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)


124
# File 'lib/onebusaway_sdk/models/trips_for_route_list_response.rb', line 124

optional :arrival_time, Integer, api_name: :arrivalTime

#departure_timeInteger?

Returns:

  • (Integer, nil)


129
# File 'lib/onebusaway_sdk/models/trips_for_route_list_response.rb', line 129

optional :departure_time, Integer, api_name: :departureTime

#distance_along_tripFloat?

Returns:

  • (Float, nil)


134
# File 'lib/onebusaway_sdk/models/trips_for_route_list_response.rb', line 134

optional :distance_along_trip, Float, api_name: :distanceAlongTrip

#historical_occupancyString?

Returns:

  • (String, nil)


139
# File 'lib/onebusaway_sdk/models/trips_for_route_list_response.rb', line 139

optional :historical_occupancy, String, api_name: :historicalOccupancy

#stop_headsignString?

Returns:

  • (String, nil)


144
# File 'lib/onebusaway_sdk/models/trips_for_route_list_response.rb', line 144

optional :stop_headsign, String, api_name: :stopHeadsign

#stop_idString?

Returns:

  • (String, nil)


149
# File 'lib/onebusaway_sdk/models/trips_for_route_list_response.rb', line 149

optional :stop_id, String, api_name: :stopId