Class: OnebusawaySDK::Models::ScheduleForStopRetrieveResponse::Data::Entry::StopRouteSchedule::StopRouteDirectionSchedule::ScheduleStopTime

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/onebusaway_sdk/models/schedule_for_stop_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(schedule_stop_times: , trip_headsign: , schedule_frequencies: nil) ⇒ Object



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

class ScheduleStopTime < OnebusawaySDK::Internal::Type::BaseModel
  # @!attribute arrival_enabled
  #
  #   @return [Boolean]
  required :arrival_enabled, OnebusawaySDK::Internal::Type::Boolean, api_name: :arrivalEnabled

  # @!attribute arrival_time
  #
  #   @return [Integer]
  required :arrival_time, Integer, api_name: :arrivalTime

  # @!attribute departure_enabled
  #
  #   @return [Boolean]
  required :departure_enabled,
           OnebusawaySDK::Internal::Type::Boolean,
           api_name: :departureEnabled

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

  # @!attribute service_id
  #
  #   @return [String]
  required :service_id, String, api_name: :serviceId

  # @!attribute trip_id
  #
  #   @return [String]
  required :trip_id, String, api_name: :tripId

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

  # @!method initialize(arrival_enabled:, arrival_time:, departure_enabled:, departure_time:, service_id:, trip_id:, stop_headsign: nil)
  #   @param arrival_enabled [Boolean]
  #   @param arrival_time [Integer]
  #   @param departure_enabled [Boolean]
  #   @param departure_time [Integer]
  #   @param service_id [String]
  #   @param trip_id [String]
  #   @param stop_headsign [String]
end

Instance Attribute Details

#arrival_enabledBoolean

Returns:

  • (Boolean)


112
# File 'lib/onebusaway_sdk/models/schedule_for_stop_retrieve_response.rb', line 112

required :arrival_enabled, OnebusawaySDK::Internal::Type::Boolean, api_name: :arrivalEnabled

#arrival_timeInteger

Returns:

  • (Integer)


117
# File 'lib/onebusaway_sdk/models/schedule_for_stop_retrieve_response.rb', line 117

required :arrival_time, Integer, api_name: :arrivalTime

#departure_enabledBoolean

Returns:

  • (Boolean)


122
123
124
# File 'lib/onebusaway_sdk/models/schedule_for_stop_retrieve_response.rb', line 122

required :departure_enabled,
OnebusawaySDK::Internal::Type::Boolean,
api_name: :departureEnabled

#departure_timeInteger

Returns:

  • (Integer)


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

required :departure_time, Integer, api_name: :departureTime

#service_idString

Returns:

  • (String)


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

required :service_id, String, api_name: :serviceId

#stop_headsignString?

Returns:

  • (String, nil)


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

optional :stop_headsign, String, api_name: :stopHeadsign

#trip_idString

Returns:

  • (String)


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

required :trip_id, String, api_name: :tripId