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:



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
145
146
147
148
149
150
151
152
# File 'lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb', line 114

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)


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

optional :arrival_time, Integer, api_name: :arrivalTime

#departure_timeInteger?

Returns:

  • (Integer, nil)


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

optional :departure_time, Integer, api_name: :departureTime

#distance_along_tripFloat?

Returns:

  • (Float, nil)


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

optional :distance_along_trip, Float, api_name: :distanceAlongTrip

#historical_occupancyString?

Returns:

  • (String, nil)


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

optional :historical_occupancy, String, api_name: :historicalOccupancy

#stop_headsignString?

Returns:

  • (String, nil)


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

optional :stop_headsign, String, api_name: :stopHeadsign

#stop_idString?

Returns:

  • (String, nil)


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

optional :stop_id, String, api_name: :stopId