From 2e35daf2cb318e35f1506f31487797b630995242 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 22:09:57 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- .../arrival_and_departure_list_response.rb | 24 ++++---- ...arrival_and_departure_retrieve_response.rb | 24 ++++---- ...d_departures_for_location_list_response.rb | 24 ++++---- .../models/trip_detail_retrieve_response.rb | 10 ++-- .../trip_for_vehicle_retrieve_response.rb | 10 ++-- .../trips_for_location_list_response.rb | 12 ++-- .../models/trips_for_route_list_response.rb | 12 ++-- .../vehicles_for_agency_list_response.rb | 4 +- .../arrival_and_departure_list_response.rbi | 54 ++++++----------- ...rrival_and_departure_retrieve_response.rbi | 54 ++++++----------- ..._departures_for_location_list_response.rbi | 54 ++++++----------- .../models/trip_detail_retrieve_response.rbi | 21 ++++--- .../trip_for_vehicle_retrieve_response.rbi | 21 ++++--- .../trips_for_location_list_response.rbi | 25 ++++---- .../models/trips_for_route_list_response.rbi | 25 ++++---- .../vehicles_for_agency_list_response.rbi | 9 +-- .../arrival_and_departure_list_response.rbs | 60 ++++++++----------- ...rrival_and_departure_retrieve_response.rbs | 60 ++++++++----------- ..._departures_for_location_list_response.rbs | 60 ++++++++----------- .../models/trip_detail_retrieve_response.rbs | 22 +++---- .../trip_for_vehicle_retrieve_response.rbs | 22 +++---- .../trips_for_location_list_response.rbs | 18 +++--- .../models/trips_for_route_list_response.rbs | 18 +++--- .../vehicles_for_agency_list_response.rbs | 10 ++-- 25 files changed, 285 insertions(+), 372 deletions(-) diff --git a/.stats.yml b/.stats.yml index 62a092eb..33679484 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 30 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit/open-transit-4a35fd1e705bc2b75f44e2fd82144b95eeb56f329e4e05bbede7e6bc8adc479e.yml -openapi_spec_hash: bc73be5518578c9ad8e878b82c540691 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit/open-transit-5f69b2b288261c7adfd9acb065dce897caf8782aff1687efe38ba52541ef7b96.yml +openapi_spec_hash: b03acca245aef78353d3b7a6a4a62eb2 config_hash: c28ddf5b7754155603d9fd1c5fcaeeff diff --git a/lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb b/lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb index 9d3f9e2b..b6aea663 100644 --- a/lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb +++ b/lib/onebusaway_sdk/models/arrival_and_departure_list_response.rb @@ -158,7 +158,7 @@ class ArrivalsAndDeparture < OnebusawaySDK::Internal::Type::BaseModel # Information about frequency-based scheduling, if applicable to the trip. # # @return [String, nil] - optional :frequency, String + optional :frequency, String, nil?: true # @!attribute historical_occupancy # Historical occupancy information of the transit vehicle. @@ -188,13 +188,13 @@ class ArrivalsAndDeparture < OnebusawaySDK::Internal::Type::BaseModel # Interval for predicted arrival time, if available. # # @return [String, nil] - optional :predicted_arrival_interval, String, api_name: :predictedArrivalInterval + optional :predicted_arrival_interval, String, api_name: :predictedArrivalInterval, nil?: true # @!attribute predicted_departure_interval # Interval for predicted departure time, if available. # # @return [String, nil] - optional :predicted_departure_interval, String, api_name: :predictedDepartureInterval + optional :predicted_departure_interval, String, api_name: :predictedDepartureInterval, nil?: true # @!attribute predicted_occupancy # Predicted occupancy status of the transit vehicle. @@ -220,13 +220,13 @@ class ArrivalsAndDeparture < OnebusawaySDK::Internal::Type::BaseModel # Interval for scheduled arrival time. # # @return [String, nil] - optional :scheduled_arrival_interval, String, api_name: :scheduledArrivalInterval + optional :scheduled_arrival_interval, String, api_name: :scheduledArrivalInterval, nil?: true # @!attribute scheduled_departure_interval # Interval for scheduled departure time. # # @return [String, nil] - optional :scheduled_departure_interval, String, api_name: :scheduledDepartureInterval + optional :scheduled_departure_interval, String, api_name: :scheduledDepartureInterval, nil?: true # @!attribute scheduled_track # Scheduled track information of the arriving transit vehicle. @@ -295,7 +295,7 @@ class ArrivalsAndDeparture < OnebusawaySDK::Internal::Type::BaseModel # # @param distance_from_stop [Float] Distance of the arriving transit vehicle from the stop, in meters. # - # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip. + # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip. # # @param historical_occupancy [String] Historical occupancy information of the transit vehicle. # @@ -305,9 +305,9 @@ class ArrivalsAndDeparture < OnebusawaySDK::Internal::Type::BaseModel # # @param predicted [Boolean] Indicates if real-time arrival info is available for this trip. # - # @param predicted_arrival_interval [String] Interval for predicted arrival time, if available. + # @param predicted_arrival_interval [String, nil] Interval for predicted arrival time, if available. # - # @param predicted_departure_interval [String] Interval for predicted departure time, if available. + # @param predicted_departure_interval [String, nil] Interval for predicted departure time, if available. # # @param predicted_occupancy [String] Predicted occupancy status of the transit vehicle. # @@ -315,9 +315,9 @@ class ArrivalsAndDeparture < OnebusawaySDK::Internal::Type::BaseModel # # @param route_short_name [String] Optional route short name that potentially overrides the route short name in the # - # @param scheduled_arrival_interval [String] Interval for scheduled arrival time. + # @param scheduled_arrival_interval [String, nil] Interval for scheduled arrival time. # - # @param scheduled_departure_interval [String] Interval for scheduled departure time. + # @param scheduled_departure_interval [String, nil] Interval for scheduled departure time. # # @param scheduled_track [String] Scheduled track information of the arriving transit vehicle. # @@ -438,7 +438,7 @@ class TripStatus < OnebusawaySDK::Internal::Type::BaseModel # Information about frequency-based scheduling, if applicable to the trip. # # @return [String, nil] - optional :frequency, String + optional :frequency, String, nil?: true # @!attribute last_known_location # Last known location of the transit vehicle (optional). @@ -541,7 +541,7 @@ class TripStatus < OnebusawaySDK::Internal::Type::BaseModel # # @param closest_stop_time_offset [Integer] Time offset from the closest stop to the current position of the transit vehicle # - # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip. + # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip. # # @param last_known_location [OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation, nil] Last known location of the transit vehicle (optional). # diff --git a/lib/onebusaway_sdk/models/arrival_and_departure_retrieve_response.rb b/lib/onebusaway_sdk/models/arrival_and_departure_retrieve_response.rb index 52feff93..0febca5d 100644 --- a/lib/onebusaway_sdk/models/arrival_and_departure_retrieve_response.rb +++ b/lib/onebusaway_sdk/models/arrival_and_departure_retrieve_response.rb @@ -147,7 +147,7 @@ class Entry < OnebusawaySDK::Internal::Type::BaseModel # Information about frequency-based scheduling, if applicable to the trip. # # @return [String, nil] - optional :frequency, String + optional :frequency, String, nil?: true # @!attribute historical_occupancy # Historical occupancy information of the transit vehicle. @@ -177,13 +177,13 @@ class Entry < OnebusawaySDK::Internal::Type::BaseModel # Interval for predicted arrival time, if available. # # @return [String, nil] - optional :predicted_arrival_interval, String, api_name: :predictedArrivalInterval + optional :predicted_arrival_interval, String, api_name: :predictedArrivalInterval, nil?: true # @!attribute predicted_departure_interval # Interval for predicted departure time, if available. # # @return [String, nil] - optional :predicted_departure_interval, String, api_name: :predictedDepartureInterval + optional :predicted_departure_interval, String, api_name: :predictedDepartureInterval, nil?: true # @!attribute predicted_occupancy # Predicted occupancy status of the transit vehicle. @@ -209,13 +209,13 @@ class Entry < OnebusawaySDK::Internal::Type::BaseModel # Interval for scheduled arrival time. # # @return [String, nil] - optional :scheduled_arrival_interval, String, api_name: :scheduledArrivalInterval + optional :scheduled_arrival_interval, String, api_name: :scheduledArrivalInterval, nil?: true # @!attribute scheduled_departure_interval # Interval for scheduled departure time. # # @return [String, nil] - optional :scheduled_departure_interval, String, api_name: :scheduledDepartureInterval + optional :scheduled_departure_interval, String, api_name: :scheduledDepartureInterval, nil?: true # @!attribute scheduled_track # Scheduled track information of the arriving transit vehicle. @@ -284,7 +284,7 @@ class Entry < OnebusawaySDK::Internal::Type::BaseModel # # @param distance_from_stop [Float] Distance of the arriving transit vehicle from the stop, in meters. # - # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip. + # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip. # # @param historical_occupancy [String] Historical occupancy information of the transit vehicle. # @@ -294,9 +294,9 @@ class Entry < OnebusawaySDK::Internal::Type::BaseModel # # @param predicted [Boolean] Indicates if real-time arrival info is available for this trip. # - # @param predicted_arrival_interval [String] Interval for predicted arrival time, if available. + # @param predicted_arrival_interval [String, nil] Interval for predicted arrival time, if available. # - # @param predicted_departure_interval [String] Interval for predicted departure time, if available. + # @param predicted_departure_interval [String, nil] Interval for predicted departure time, if available. # # @param predicted_occupancy [String] Predicted occupancy status of the transit vehicle. # @@ -304,9 +304,9 @@ class Entry < OnebusawaySDK::Internal::Type::BaseModel # # @param route_short_name [String] Optional route short name that potentially overrides the route short name in the # - # @param scheduled_arrival_interval [String] Interval for scheduled arrival time. + # @param scheduled_arrival_interval [String, nil] Interval for scheduled arrival time. # - # @param scheduled_departure_interval [String] Interval for scheduled departure time. + # @param scheduled_departure_interval [String, nil] Interval for scheduled departure time. # # @param scheduled_track [String] Scheduled track information of the arriving transit vehicle. # @@ -427,7 +427,7 @@ class TripStatus < OnebusawaySDK::Internal::Type::BaseModel # Information about frequency-based scheduling, if applicable to the trip. # # @return [String, nil] - optional :frequency, String + optional :frequency, String, nil?: true # @!attribute last_known_location # Last known location of the transit vehicle (optional). @@ -530,7 +530,7 @@ class TripStatus < OnebusawaySDK::Internal::Type::BaseModel # # @param closest_stop_time_offset [Integer] Time offset from the closest stop to the current position of the transit vehicle # - # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip. + # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip. # # @param last_known_location [OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus::LastKnownLocation, nil] Last known location of the transit vehicle (optional). # diff --git a/lib/onebusaway_sdk/models/arrivals_and_departures_for_location_list_response.rb b/lib/onebusaway_sdk/models/arrivals_and_departures_for_location_list_response.rb index c63da470..53b39108 100644 --- a/lib/onebusaway_sdk/models/arrivals_and_departures_for_location_list_response.rb +++ b/lib/onebusaway_sdk/models/arrivals_and_departures_for_location_list_response.rb @@ -184,7 +184,7 @@ class ArrivalsAndDeparture < OnebusawaySDK::Internal::Type::BaseModel # Information about frequency-based scheduling, if applicable to the trip. # # @return [String, nil] - optional :frequency, String + optional :frequency, String, nil?: true # @!attribute historical_occupancy # Historical occupancy information of the transit vehicle. @@ -214,13 +214,13 @@ class ArrivalsAndDeparture < OnebusawaySDK::Internal::Type::BaseModel # Interval for predicted arrival time, if available. # # @return [String, nil] - optional :predicted_arrival_interval, String, api_name: :predictedArrivalInterval + optional :predicted_arrival_interval, String, api_name: :predictedArrivalInterval, nil?: true # @!attribute predicted_departure_interval # Interval for predicted departure time, if available. # # @return [String, nil] - optional :predicted_departure_interval, String, api_name: :predictedDepartureInterval + optional :predicted_departure_interval, String, api_name: :predictedDepartureInterval, nil?: true # @!attribute predicted_occupancy # Predicted occupancy status of the transit vehicle. @@ -246,13 +246,13 @@ class ArrivalsAndDeparture < OnebusawaySDK::Internal::Type::BaseModel # Interval for scheduled arrival time. # # @return [String, nil] - optional :scheduled_arrival_interval, String, api_name: :scheduledArrivalInterval + optional :scheduled_arrival_interval, String, api_name: :scheduledArrivalInterval, nil?: true # @!attribute scheduled_departure_interval # Interval for scheduled departure time. # # @return [String, nil] - optional :scheduled_departure_interval, String, api_name: :scheduledDepartureInterval + optional :scheduled_departure_interval, String, api_name: :scheduledDepartureInterval, nil?: true # @!attribute scheduled_track # Scheduled track information of the arriving transit vehicle. @@ -321,7 +321,7 @@ class ArrivalsAndDeparture < OnebusawaySDK::Internal::Type::BaseModel # # @param distance_from_stop [Float] Distance of the arriving transit vehicle from the stop, in meters. # - # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip. + # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip. # # @param historical_occupancy [String] Historical occupancy information of the transit vehicle. # @@ -331,9 +331,9 @@ class ArrivalsAndDeparture < OnebusawaySDK::Internal::Type::BaseModel # # @param predicted [Boolean] Indicates if real-time arrival info is available for this trip. # - # @param predicted_arrival_interval [String] Interval for predicted arrival time, if available. + # @param predicted_arrival_interval [String, nil] Interval for predicted arrival time, if available. # - # @param predicted_departure_interval [String] Interval for predicted departure time, if available. + # @param predicted_departure_interval [String, nil] Interval for predicted departure time, if available. # # @param predicted_occupancy [String] Predicted occupancy status of the transit vehicle. # @@ -341,9 +341,9 @@ class ArrivalsAndDeparture < OnebusawaySDK::Internal::Type::BaseModel # # @param route_short_name [String] Optional route short name that potentially overrides the route short name in the # - # @param scheduled_arrival_interval [String] Interval for scheduled arrival time. + # @param scheduled_arrival_interval [String, nil] Interval for scheduled arrival time. # - # @param scheduled_departure_interval [String] Interval for scheduled departure time. + # @param scheduled_departure_interval [String, nil] Interval for scheduled departure time. # # @param scheduled_track [String] Scheduled track information of the arriving transit vehicle. # @@ -464,7 +464,7 @@ class TripStatus < OnebusawaySDK::Internal::Type::BaseModel # Information about frequency-based scheduling, if applicable to the trip. # # @return [String, nil] - optional :frequency, String + optional :frequency, String, nil?: true # @!attribute last_known_location # Last known location of the transit vehicle (optional). @@ -567,7 +567,7 @@ class TripStatus < OnebusawaySDK::Internal::Type::BaseModel # # @param closest_stop_time_offset [Integer] Time offset from the closest stop to the current position of the transit vehicle # - # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip. + # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip. # # @param last_known_location [OnebusawaySDK::Models::ArrivalsAndDeparturesForLocationListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation, nil] Last known location of the transit vehicle (optional). # diff --git a/lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb b/lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb index c3a680be..2dfe9cb9 100644 --- a/lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb +++ b/lib/onebusaway_sdk/models/trip_detail_retrieve_response.rb @@ -42,7 +42,9 @@ class Entry < OnebusawaySDK::Internal::Type::BaseModel # @!attribute schedule # # @return [OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule, nil] - optional :schedule, -> { OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule } + optional :schedule, + -> { OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule }, + nil?: true # @!attribute service_date # @@ -65,7 +67,7 @@ class Entry < OnebusawaySDK::Internal::Type::BaseModel # # @param frequency [String, nil] # - # @param schedule [OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule] + # @param schedule [OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule, nil] # # @param service_date [Integer] # @@ -261,7 +263,7 @@ class Status < OnebusawaySDK::Internal::Type::BaseModel # Information about frequency-based scheduling, if applicable to the trip. # # @return [String, nil] - optional :frequency, String + optional :frequency, String, nil?: true # @!attribute last_known_location # Last known location of the transit vehicle (optional). @@ -364,7 +366,7 @@ class Status < OnebusawaySDK::Internal::Type::BaseModel # # @param closest_stop_time_offset [Integer] Time offset from the closest stop to the current position of the transit vehicle # - # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip. + # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip. # # @param last_known_location [OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Status::LastKnownLocation, nil] Last known location of the transit vehicle (optional). # diff --git a/lib/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rb b/lib/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rb index 001f6227..a93d9209 100644 --- a/lib/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rb +++ b/lib/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rb @@ -42,7 +42,9 @@ class Entry < OnebusawaySDK::Internal::Type::BaseModel # @!attribute schedule # # @return [OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule, nil] - optional :schedule, -> { OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule } + optional :schedule, + -> { OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule }, + nil?: true # @!attribute service_date # @@ -65,7 +67,7 @@ class Entry < OnebusawaySDK::Internal::Type::BaseModel # # @param frequency [String, nil] # - # @param schedule [OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule] + # @param schedule [OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule, nil] # # @param service_date [Integer] # @@ -261,7 +263,7 @@ class Status < OnebusawaySDK::Internal::Type::BaseModel # Information about frequency-based scheduling, if applicable to the trip. # # @return [String, nil] - optional :frequency, String + optional :frequency, String, nil?: true # @!attribute last_known_location # Last known location of the transit vehicle (optional). @@ -364,7 +366,7 @@ class Status < OnebusawaySDK::Internal::Type::BaseModel # # @param closest_stop_time_offset [Integer] Time offset from the closest stop to the current position of the transit vehicle # - # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip. + # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip. # # @param last_known_location [OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Status::LastKnownLocation, nil] Last known location of the transit vehicle (optional). # diff --git a/lib/onebusaway_sdk/models/trips_for_location_list_response.rb b/lib/onebusaway_sdk/models/trips_for_location_list_response.rb index ba500238..ecbffe4c 100644 --- a/lib/onebusaway_sdk/models/trips_for_location_list_response.rb +++ b/lib/onebusaway_sdk/models/trips_for_location_list_response.rb @@ -48,8 +48,10 @@ class Data < OnebusawaySDK::Internal::Type::BaseModel class List < OnebusawaySDK::Internal::Type::BaseModel # @!attribute schedule # - # @return [OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule] - required :schedule, -> { OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule } + # @return [OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule, nil] + required :schedule, + -> { OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule }, + nil?: true # @!attribute status # Trip-specific status for the arriving transit vehicle. @@ -78,7 +80,7 @@ class List < OnebusawaySDK::Internal::Type::BaseModel optional :situation_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :situationIds # @!method initialize(schedule:, status:, trip_id:, frequency: nil, service_date: nil, situation_ids: nil) - # @param schedule [OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule] + # @param schedule [OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule, nil] # # @param status [OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Status] Trip-specific status for the arriving transit vehicle. # @@ -278,7 +280,7 @@ class Status < OnebusawaySDK::Internal::Type::BaseModel # Information about frequency-based scheduling, if applicable to the trip. # # @return [String, nil] - optional :frequency, String + optional :frequency, String, nil?: true # @!attribute last_known_location # Last known location of the transit vehicle (optional). @@ -381,7 +383,7 @@ class Status < OnebusawaySDK::Internal::Type::BaseModel # # @param closest_stop_time_offset [Integer] Time offset from the closest stop to the current position of the transit vehicle # - # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip. + # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip. # # @param last_known_location [OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Status::LastKnownLocation, nil] Last known location of the transit vehicle (optional). # diff --git a/lib/onebusaway_sdk/models/trips_for_route_list_response.rb b/lib/onebusaway_sdk/models/trips_for_route_list_response.rb index f1aeeb81..062cbdf2 100644 --- a/lib/onebusaway_sdk/models/trips_for_route_list_response.rb +++ b/lib/onebusaway_sdk/models/trips_for_route_list_response.rb @@ -37,8 +37,10 @@ class Data < OnebusawaySDK::Internal::Type::BaseModel class List < OnebusawaySDK::Internal::Type::BaseModel # @!attribute schedule # - # @return [OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule] - required :schedule, -> { OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule } + # @return [OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule, nil] + required :schedule, + -> { OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule }, + nil?: true # @!attribute status # Trip-specific status for the arriving transit vehicle. @@ -67,7 +69,7 @@ class List < OnebusawaySDK::Internal::Type::BaseModel optional :situation_ids, OnebusawaySDK::Internal::Type::ArrayOf[String], api_name: :situationIds # @!method initialize(schedule:, status:, trip_id:, frequency: nil, service_date: nil, situation_ids: nil) - # @param schedule [OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule] + # @param schedule [OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule, nil] # # @param status [OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Status] Trip-specific status for the arriving transit vehicle. # @@ -267,7 +269,7 @@ class Status < OnebusawaySDK::Internal::Type::BaseModel # Information about frequency-based scheduling, if applicable to the trip. # # @return [String, nil] - optional :frequency, String + optional :frequency, String, nil?: true # @!attribute last_known_location # Last known location of the transit vehicle (optional). @@ -369,7 +371,7 @@ class Status < OnebusawaySDK::Internal::Type::BaseModel # # @param closest_stop_time_offset [Integer] Time offset from the closest stop to the current position of the transit vehicle # - # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip. + # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip. # # @param last_known_location [OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Status::LastKnownLocation, nil] Last known location of the transit vehicle (optional). # diff --git a/lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb b/lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb index 5705afcd..92bbbc4f 100644 --- a/lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb +++ b/lib/onebusaway_sdk/models/vehicles_for_agency_list_response.rb @@ -244,7 +244,7 @@ class TripStatus < OnebusawaySDK::Internal::Type::BaseModel # Information about frequency-based scheduling, if applicable to the trip. # # @return [String, nil] - optional :frequency, String + optional :frequency, String, nil?: true # @!attribute last_known_location # Last known location of the transit vehicle (optional). @@ -347,7 +347,7 @@ class TripStatus < OnebusawaySDK::Internal::Type::BaseModel # # @param closest_stop_time_offset [Integer] Time offset from the closest stop to the current position of the transit vehicle # - # @param frequency [String] Information about frequency-based scheduling, if applicable to the trip. + # @param frequency [String, nil] Information about frequency-based scheduling, if applicable to the trip. # # @param last_known_location [OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus::LastKnownLocation, nil] Last known location of the transit vehicle (optional). # diff --git a/rbi/onebusaway_sdk/models/arrival_and_departure_list_response.rbi b/rbi/onebusaway_sdk/models/arrival_and_departure_list_response.rbi index 51f0f309..b12c7748 100644 --- a/rbi/onebusaway_sdk/models/arrival_and_departure_list_response.rbi +++ b/rbi/onebusaway_sdk/models/arrival_and_departure_list_response.rbi @@ -230,10 +230,7 @@ module OnebusawaySDK # Information about frequency-based scheduling, if applicable to the trip. sig { returns(T.nilable(String)) } - attr_reader :frequency - - sig { params(frequency: String).void } - attr_writer :frequency + attr_accessor :frequency # Historical occupancy information of the transit vehicle. sig { returns(T.nilable(String)) } @@ -265,17 +262,11 @@ module OnebusawaySDK # Interval for predicted arrival time, if available. sig { returns(T.nilable(String)) } - attr_reader :predicted_arrival_interval - - sig { params(predicted_arrival_interval: String).void } - attr_writer :predicted_arrival_interval + attr_accessor :predicted_arrival_interval # Interval for predicted departure time, if available. sig { returns(T.nilable(String)) } - attr_reader :predicted_departure_interval - - sig { params(predicted_departure_interval: String).void } - attr_writer :predicted_departure_interval + attr_accessor :predicted_departure_interval # Predicted occupancy status of the transit vehicle. sig { returns(T.nilable(String)) } @@ -302,17 +293,11 @@ module OnebusawaySDK # Interval for scheduled arrival time. sig { returns(T.nilable(String)) } - attr_reader :scheduled_arrival_interval - - sig { params(scheduled_arrival_interval: String).void } - attr_writer :scheduled_arrival_interval + attr_accessor :scheduled_arrival_interval # Interval for scheduled departure time. sig { returns(T.nilable(String)) } - attr_reader :scheduled_departure_interval - - sig { params(scheduled_departure_interval: String).void } - attr_writer :scheduled_departure_interval + attr_accessor :scheduled_departure_interval # Scheduled track information of the arriving transit vehicle. sig { returns(T.nilable(String)) } @@ -373,18 +358,18 @@ module OnebusawaySDK vehicle_id: String, actual_track: String, distance_from_stop: Float, - frequency: String, + frequency: T.nilable(String), historical_occupancy: String, last_update_time: Integer, occupancy_status: String, predicted: T::Boolean, - predicted_arrival_interval: String, - predicted_departure_interval: String, + predicted_arrival_interval: T.nilable(String), + predicted_departure_interval: T.nilable(String), predicted_occupancy: String, route_long_name: String, route_short_name: String, - scheduled_arrival_interval: String, - scheduled_departure_interval: String, + scheduled_arrival_interval: T.nilable(String), + scheduled_departure_interval: T.nilable(String), scheduled_track: String, situation_ids: T::Array[String], status: String, @@ -493,18 +478,18 @@ module OnebusawaySDK vehicle_id: String, actual_track: String, distance_from_stop: Float, - frequency: String, + frequency: T.nilable(String), historical_occupancy: String, last_update_time: Integer, occupancy_status: String, predicted: T::Boolean, - predicted_arrival_interval: String, - predicted_departure_interval: String, + predicted_arrival_interval: T.nilable(String), + predicted_departure_interval: T.nilable(String), predicted_occupancy: String, route_long_name: String, route_short_name: String, - scheduled_arrival_interval: String, - scheduled_departure_interval: String, + scheduled_arrival_interval: T.nilable(String), + scheduled_departure_interval: T.nilable(String), scheduled_track: String, situation_ids: T::Array[String], status: String, @@ -601,10 +586,7 @@ module OnebusawaySDK # Information about frequency-based scheduling, if applicable to the trip. sig { returns(T.nilable(String)) } - attr_reader :frequency - - sig { params(frequency: String).void } - attr_writer :frequency + attr_accessor :frequency # Last known location of the transit vehicle (optional). sig do @@ -715,7 +697,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: T.nilable(String), last_known_location: T.nilable( OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation::OrHash @@ -814,7 +796,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: T.nilable(String), last_known_location: T.nilable( OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation diff --git a/rbi/onebusaway_sdk/models/arrival_and_departure_retrieve_response.rbi b/rbi/onebusaway_sdk/models/arrival_and_departure_retrieve_response.rbi index 494e7085..2354f6f4 100644 --- a/rbi/onebusaway_sdk/models/arrival_and_departure_retrieve_response.rbi +++ b/rbi/onebusaway_sdk/models/arrival_and_departure_retrieve_response.rbi @@ -193,10 +193,7 @@ module OnebusawaySDK # Information about frequency-based scheduling, if applicable to the trip. sig { returns(T.nilable(String)) } - attr_reader :frequency - - sig { params(frequency: String).void } - attr_writer :frequency + attr_accessor :frequency # Historical occupancy information of the transit vehicle. sig { returns(T.nilable(String)) } @@ -228,17 +225,11 @@ module OnebusawaySDK # Interval for predicted arrival time, if available. sig { returns(T.nilable(String)) } - attr_reader :predicted_arrival_interval - - sig { params(predicted_arrival_interval: String).void } - attr_writer :predicted_arrival_interval + attr_accessor :predicted_arrival_interval # Interval for predicted departure time, if available. sig { returns(T.nilable(String)) } - attr_reader :predicted_departure_interval - - sig { params(predicted_departure_interval: String).void } - attr_writer :predicted_departure_interval + attr_accessor :predicted_departure_interval # Predicted occupancy status of the transit vehicle. sig { returns(T.nilable(String)) } @@ -265,17 +256,11 @@ module OnebusawaySDK # Interval for scheduled arrival time. sig { returns(T.nilable(String)) } - attr_reader :scheduled_arrival_interval - - sig { params(scheduled_arrival_interval: String).void } - attr_writer :scheduled_arrival_interval + attr_accessor :scheduled_arrival_interval # Interval for scheduled departure time. sig { returns(T.nilable(String)) } - attr_reader :scheduled_departure_interval - - sig { params(scheduled_departure_interval: String).void } - attr_writer :scheduled_departure_interval + attr_accessor :scheduled_departure_interval # Scheduled track information of the arriving transit vehicle. sig { returns(T.nilable(String)) } @@ -336,18 +321,18 @@ module OnebusawaySDK vehicle_id: String, actual_track: String, distance_from_stop: Float, - frequency: String, + frequency: T.nilable(String), historical_occupancy: String, last_update_time: Integer, occupancy_status: String, predicted: T::Boolean, - predicted_arrival_interval: String, - predicted_departure_interval: String, + predicted_arrival_interval: T.nilable(String), + predicted_departure_interval: T.nilable(String), predicted_occupancy: String, route_long_name: String, route_short_name: String, - scheduled_arrival_interval: String, - scheduled_departure_interval: String, + scheduled_arrival_interval: T.nilable(String), + scheduled_departure_interval: T.nilable(String), scheduled_track: String, situation_ids: T::Array[String], status: String, @@ -456,18 +441,18 @@ module OnebusawaySDK vehicle_id: String, actual_track: String, distance_from_stop: Float, - frequency: String, + frequency: T.nilable(String), historical_occupancy: String, last_update_time: Integer, occupancy_status: String, predicted: T::Boolean, - predicted_arrival_interval: String, - predicted_departure_interval: String, + predicted_arrival_interval: T.nilable(String), + predicted_departure_interval: T.nilable(String), predicted_occupancy: String, route_long_name: String, route_short_name: String, - scheduled_arrival_interval: String, - scheduled_departure_interval: String, + scheduled_arrival_interval: T.nilable(String), + scheduled_departure_interval: T.nilable(String), scheduled_track: String, situation_ids: T::Array[String], status: String, @@ -564,10 +549,7 @@ module OnebusawaySDK # Information about frequency-based scheduling, if applicable to the trip. sig { returns(T.nilable(String)) } - attr_reader :frequency - - sig { params(frequency: String).void } - attr_writer :frequency + attr_accessor :frequency # Last known location of the transit vehicle (optional). sig do @@ -678,7 +660,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: T.nilable(String), last_known_location: T.nilable( OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus::LastKnownLocation::OrHash @@ -777,7 +759,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: T.nilable(String), last_known_location: T.nilable( OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus::LastKnownLocation diff --git a/rbi/onebusaway_sdk/models/arrivals_and_departures_for_location_list_response.rbi b/rbi/onebusaway_sdk/models/arrivals_and_departures_for_location_list_response.rbi index 02f2b22c..7f8974b2 100644 --- a/rbi/onebusaway_sdk/models/arrivals_and_departures_for_location_list_response.rbi +++ b/rbi/onebusaway_sdk/models/arrivals_and_departures_for_location_list_response.rbi @@ -276,10 +276,7 @@ module OnebusawaySDK # Information about frequency-based scheduling, if applicable to the trip. sig { returns(T.nilable(String)) } - attr_reader :frequency - - sig { params(frequency: String).void } - attr_writer :frequency + attr_accessor :frequency # Historical occupancy information of the transit vehicle. sig { returns(T.nilable(String)) } @@ -311,17 +308,11 @@ module OnebusawaySDK # Interval for predicted arrival time, if available. sig { returns(T.nilable(String)) } - attr_reader :predicted_arrival_interval - - sig { params(predicted_arrival_interval: String).void } - attr_writer :predicted_arrival_interval + attr_accessor :predicted_arrival_interval # Interval for predicted departure time, if available. sig { returns(T.nilable(String)) } - attr_reader :predicted_departure_interval - - sig { params(predicted_departure_interval: String).void } - attr_writer :predicted_departure_interval + attr_accessor :predicted_departure_interval # Predicted occupancy status of the transit vehicle. sig { returns(T.nilable(String)) } @@ -348,17 +339,11 @@ module OnebusawaySDK # Interval for scheduled arrival time. sig { returns(T.nilable(String)) } - attr_reader :scheduled_arrival_interval - - sig { params(scheduled_arrival_interval: String).void } - attr_writer :scheduled_arrival_interval + attr_accessor :scheduled_arrival_interval # Interval for scheduled departure time. sig { returns(T.nilable(String)) } - attr_reader :scheduled_departure_interval - - sig { params(scheduled_departure_interval: String).void } - attr_writer :scheduled_departure_interval + attr_accessor :scheduled_departure_interval # Scheduled track information of the arriving transit vehicle. sig { returns(T.nilable(String)) } @@ -419,18 +404,18 @@ module OnebusawaySDK vehicle_id: String, actual_track: String, distance_from_stop: Float, - frequency: String, + frequency: T.nilable(String), historical_occupancy: String, last_update_time: Integer, occupancy_status: String, predicted: T::Boolean, - predicted_arrival_interval: String, - predicted_departure_interval: String, + predicted_arrival_interval: T.nilable(String), + predicted_departure_interval: T.nilable(String), predicted_occupancy: String, route_long_name: String, route_short_name: String, - scheduled_arrival_interval: String, - scheduled_departure_interval: String, + scheduled_arrival_interval: T.nilable(String), + scheduled_departure_interval: T.nilable(String), scheduled_track: String, situation_ids: T::Array[String], status: String, @@ -539,18 +524,18 @@ module OnebusawaySDK vehicle_id: String, actual_track: String, distance_from_stop: Float, - frequency: String, + frequency: T.nilable(String), historical_occupancy: String, last_update_time: Integer, occupancy_status: String, predicted: T::Boolean, - predicted_arrival_interval: String, - predicted_departure_interval: String, + predicted_arrival_interval: T.nilable(String), + predicted_departure_interval: T.nilable(String), predicted_occupancy: String, route_long_name: String, route_short_name: String, - scheduled_arrival_interval: String, - scheduled_departure_interval: String, + scheduled_arrival_interval: T.nilable(String), + scheduled_departure_interval: T.nilable(String), scheduled_track: String, situation_ids: T::Array[String], status: String, @@ -647,10 +632,7 @@ module OnebusawaySDK # Information about frequency-based scheduling, if applicable to the trip. sig { returns(T.nilable(String)) } - attr_reader :frequency - - sig { params(frequency: String).void } - attr_writer :frequency + attr_accessor :frequency # Last known location of the transit vehicle (optional). sig do @@ -761,7 +743,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: T.nilable(String), last_known_location: T.nilable( OnebusawaySDK::Models::ArrivalsAndDeparturesForLocationListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation::OrHash @@ -860,7 +842,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: T.nilable(String), last_known_location: T.nilable( OnebusawaySDK::Models::ArrivalsAndDeparturesForLocationListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation diff --git a/rbi/onebusaway_sdk/models/trip_detail_retrieve_response.rbi b/rbi/onebusaway_sdk/models/trip_detail_retrieve_response.rbi index 3294c5ac..69b181fd 100644 --- a/rbi/onebusaway_sdk/models/trip_detail_retrieve_response.rbi +++ b/rbi/onebusaway_sdk/models/trip_detail_retrieve_response.rbi @@ -116,7 +116,9 @@ module OnebusawaySDK sig do params( schedule: - OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule::OrHash + T.nilable( + OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule::OrHash + ) ).void end attr_writer :schedule @@ -156,7 +158,9 @@ module OnebusawaySDK trip_id: String, frequency: T.nilable(String), schedule: - OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule::OrHash, + T.nilable( + OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule::OrHash + ), service_date: Integer, situation_ids: T::Array[String], status: @@ -180,7 +184,9 @@ module OnebusawaySDK trip_id: String, frequency: T.nilable(String), schedule: - OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule, + T.nilable( + OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule + ), service_date: Integer, situation_ids: T::Array[String], status: @@ -426,10 +432,7 @@ module OnebusawaySDK # Information about frequency-based scheduling, if applicable to the trip. sig { returns(T.nilable(String)) } - attr_reader :frequency - - sig { params(frequency: String).void } - attr_writer :frequency + attr_accessor :frequency # Last known location of the transit vehicle (optional). sig do @@ -540,7 +543,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: T.nilable(String), last_known_location: T.nilable( OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Status::LastKnownLocation::OrHash @@ -639,7 +642,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: T.nilable(String), last_known_location: T.nilable( OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Status::LastKnownLocation diff --git a/rbi/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rbi b/rbi/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rbi index 9e297a5b..f737b2fd 100644 --- a/rbi/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rbi +++ b/rbi/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rbi @@ -120,7 +120,9 @@ module OnebusawaySDK sig do params( schedule: - OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule::OrHash + T.nilable( + OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule::OrHash + ) ).void end attr_writer :schedule @@ -160,7 +162,9 @@ module OnebusawaySDK trip_id: String, frequency: T.nilable(String), schedule: - OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule::OrHash, + T.nilable( + OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule::OrHash + ), service_date: Integer, situation_ids: T::Array[String], status: @@ -184,7 +188,9 @@ module OnebusawaySDK trip_id: String, frequency: T.nilable(String), schedule: - OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule, + T.nilable( + OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule + ), service_date: Integer, situation_ids: T::Array[String], status: @@ -430,10 +436,7 @@ module OnebusawaySDK # Information about frequency-based scheduling, if applicable to the trip. sig { returns(T.nilable(String)) } - attr_reader :frequency - - sig { params(frequency: String).void } - attr_writer :frequency + attr_accessor :frequency # Last known location of the transit vehicle (optional). sig do @@ -544,7 +547,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: T.nilable(String), last_known_location: T.nilable( OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Status::LastKnownLocation::OrHash @@ -643,7 +646,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: T.nilable(String), last_known_location: T.nilable( OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Status::LastKnownLocation diff --git a/rbi/onebusaway_sdk/models/trips_for_location_list_response.rbi b/rbi/onebusaway_sdk/models/trips_for_location_list_response.rbi index 660ccfb3..6965175b 100644 --- a/rbi/onebusaway_sdk/models/trips_for_location_list_response.rbi +++ b/rbi/onebusaway_sdk/models/trips_for_location_list_response.rbi @@ -125,7 +125,9 @@ module OnebusawaySDK sig do returns( - OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule + T.nilable( + OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule + ) ) end attr_reader :schedule @@ -133,7 +135,9 @@ module OnebusawaySDK sig do params( schedule: - OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule::OrHash + T.nilable( + OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule::OrHash + ) ).void end attr_writer :schedule @@ -175,7 +179,9 @@ module OnebusawaySDK sig do params( schedule: - OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule::OrHash, + T.nilable( + OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule::OrHash + ), status: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Status::OrHash, trip_id: String, @@ -199,7 +205,9 @@ module OnebusawaySDK override.returns( { schedule: - OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule, + T.nilable( + OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule + ), status: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Status, trip_id: String, @@ -447,10 +455,7 @@ module OnebusawaySDK # Information about frequency-based scheduling, if applicable to the trip. sig { returns(T.nilable(String)) } - attr_reader :frequency - - sig { params(frequency: String).void } - attr_writer :frequency + attr_accessor :frequency # Last known location of the transit vehicle (optional). sig do @@ -561,7 +566,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: T.nilable(String), last_known_location: T.nilable( OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Status::LastKnownLocation::OrHash @@ -660,7 +665,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: T.nilable(String), last_known_location: T.nilable( OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Status::LastKnownLocation diff --git a/rbi/onebusaway_sdk/models/trips_for_route_list_response.rbi b/rbi/onebusaway_sdk/models/trips_for_route_list_response.rbi index 92842b7e..0cf9ca14 100644 --- a/rbi/onebusaway_sdk/models/trips_for_route_list_response.rbi +++ b/rbi/onebusaway_sdk/models/trips_for_route_list_response.rbi @@ -106,7 +106,9 @@ module OnebusawaySDK sig do returns( - OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule + T.nilable( + OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule + ) ) end attr_reader :schedule @@ -114,7 +116,9 @@ module OnebusawaySDK sig do params( schedule: - OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule::OrHash + T.nilable( + OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule::OrHash + ) ).void end attr_writer :schedule @@ -156,7 +160,9 @@ module OnebusawaySDK sig do params( schedule: - OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule::OrHash, + T.nilable( + OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule::OrHash + ), status: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Status::OrHash, trip_id: String, @@ -180,7 +186,9 @@ module OnebusawaySDK override.returns( { schedule: - OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule, + T.nilable( + OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule + ), status: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Status, trip_id: String, @@ -428,10 +436,7 @@ module OnebusawaySDK # Information about frequency-based scheduling, if applicable to the trip. sig { returns(T.nilable(String)) } - attr_reader :frequency - - sig { params(frequency: String).void } - attr_writer :frequency + attr_accessor :frequency # Last known location of the transit vehicle (optional). sig do @@ -542,7 +547,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: T.nilable(String), last_known_location: T.nilable( OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Status::LastKnownLocation::OrHash @@ -641,7 +646,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: T.nilable(String), last_known_location: T.nilable( OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Status::LastKnownLocation diff --git a/rbi/onebusaway_sdk/models/vehicles_for_agency_list_response.rbi b/rbi/onebusaway_sdk/models/vehicles_for_agency_list_response.rbi index 180816bb..3e5ee370 100644 --- a/rbi/onebusaway_sdk/models/vehicles_for_agency_list_response.rbi +++ b/rbi/onebusaway_sdk/models/vehicles_for_agency_list_response.rbi @@ -358,10 +358,7 @@ module OnebusawaySDK # Information about frequency-based scheduling, if applicable to the trip. sig { returns(T.nilable(String)) } - attr_reader :frequency - - sig { params(frequency: String).void } - attr_writer :frequency + attr_accessor :frequency # Last known location of the transit vehicle (optional). sig do @@ -472,7 +469,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: T.nilable(String), last_known_location: T.nilable( OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus::LastKnownLocation::OrHash @@ -571,7 +568,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: T.nilable(String), last_known_location: T.nilable( OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus::LastKnownLocation diff --git a/sig/onebusaway_sdk/models/arrival_and_departure_list_response.rbs b/sig/onebusaway_sdk/models/arrival_and_departure_list_response.rbs index 4340f28e..93bd4bd2 100644 --- a/sig/onebusaway_sdk/models/arrival_and_departure_list_response.rbs +++ b/sig/onebusaway_sdk/models/arrival_and_departure_list_response.rbs @@ -75,18 +75,18 @@ module OnebusawaySDK vehicle_id: String, actual_track: String, distance_from_stop: Float, - frequency: String, + frequency: String?, historical_occupancy: String, last_update_time: Integer, occupancy_status: String, predicted: bool, - predicted_arrival_interval: String, - predicted_departure_interval: String, + predicted_arrival_interval: String?, + predicted_departure_interval: String?, predicted_occupancy: String, route_long_name: String, route_short_name: String, - scheduled_arrival_interval: String, - scheduled_departure_interval: String, + scheduled_arrival_interval: String?, + scheduled_departure_interval: String?, scheduled_track: String, situation_ids: ::Array[String], status: String, @@ -134,9 +134,7 @@ module OnebusawaySDK def distance_from_stop=: (Float) -> Float - attr_reader frequency: String? - - def frequency=: (String) -> String + attr_accessor frequency: String? attr_reader historical_occupancy: String? @@ -154,13 +152,9 @@ module OnebusawaySDK def predicted=: (bool) -> bool - attr_reader predicted_arrival_interval: String? - - def predicted_arrival_interval=: (String) -> String - - attr_reader predicted_departure_interval: String? + attr_accessor predicted_arrival_interval: String? - def predicted_departure_interval=: (String) -> String + attr_accessor predicted_departure_interval: String? attr_reader predicted_occupancy: String? @@ -174,13 +168,9 @@ module OnebusawaySDK def route_short_name=: (String) -> String - attr_reader scheduled_arrival_interval: String? + attr_accessor scheduled_arrival_interval: String? - def scheduled_arrival_interval=: (String) -> String - - attr_reader scheduled_departure_interval: String? - - def scheduled_departure_interval=: (String) -> String + attr_accessor scheduled_departure_interval: String? attr_reader scheduled_track: String? @@ -219,18 +209,18 @@ module OnebusawaySDK vehicle_id: String, ?actual_track: String, ?distance_from_stop: Float, - ?frequency: String, + ?frequency: String?, ?historical_occupancy: String, ?last_update_time: Integer, ?occupancy_status: String, ?predicted: bool, - ?predicted_arrival_interval: String, - ?predicted_departure_interval: String, + ?predicted_arrival_interval: String?, + ?predicted_departure_interval: String?, ?predicted_occupancy: String, ?route_long_name: String, ?route_short_name: String, - ?scheduled_arrival_interval: String, - ?scheduled_departure_interval: String, + ?scheduled_arrival_interval: String?, + ?scheduled_departure_interval: String?, ?scheduled_track: String, ?situation_ids: ::Array[String], ?status: String, @@ -256,18 +246,18 @@ module OnebusawaySDK vehicle_id: String, actual_track: String, distance_from_stop: Float, - frequency: String, + frequency: String?, historical_occupancy: String, last_update_time: Integer, occupancy_status: String, predicted: bool, - predicted_arrival_interval: String, - predicted_departure_interval: String, + predicted_arrival_interval: String?, + predicted_departure_interval: String?, predicted_occupancy: String, route_long_name: String, route_short_name: String, - scheduled_arrival_interval: String, - scheduled_departure_interval: String, + scheduled_arrival_interval: String?, + scheduled_departure_interval: String?, scheduled_track: String, situation_ids: ::Array[String], status: String, @@ -293,7 +283,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: String?, last_known_location: OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation?, last_known_orientation: Float, next_stop: String, @@ -342,9 +332,7 @@ module OnebusawaySDK def closest_stop_time_offset=: (Integer) -> Integer - attr_reader frequency: String? - - def frequency=: (String) -> String + attr_accessor frequency: String? attr_accessor last_known_location: OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation? @@ -400,7 +388,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, ?closest_stop_time_offset: Integer, - ?frequency: String, + ?frequency: String?, ?last_known_location: OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation?, ?last_known_orientation: Float, ?next_stop: String, @@ -430,7 +418,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: String?, last_known_location: OnebusawaySDK::Models::ArrivalAndDepartureListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation?, last_known_orientation: Float, next_stop: String, diff --git a/sig/onebusaway_sdk/models/arrival_and_departure_retrieve_response.rbs b/sig/onebusaway_sdk/models/arrival_and_departure_retrieve_response.rbs index 107a7911..2fc30d73 100644 --- a/sig/onebusaway_sdk/models/arrival_and_departure_retrieve_response.rbs +++ b/sig/onebusaway_sdk/models/arrival_and_departure_retrieve_response.rbs @@ -59,18 +59,18 @@ module OnebusawaySDK vehicle_id: String, actual_track: String, distance_from_stop: Float, - frequency: String, + frequency: String?, historical_occupancy: String, last_update_time: Integer, occupancy_status: String, predicted: bool, - predicted_arrival_interval: String, - predicted_departure_interval: String, + predicted_arrival_interval: String?, + predicted_departure_interval: String?, predicted_occupancy: String, route_long_name: String, route_short_name: String, - scheduled_arrival_interval: String, - scheduled_departure_interval: String, + scheduled_arrival_interval: String?, + scheduled_departure_interval: String?, scheduled_track: String, situation_ids: ::Array[String], status: String, @@ -118,9 +118,7 @@ module OnebusawaySDK def distance_from_stop=: (Float) -> Float - attr_reader frequency: String? - - def frequency=: (String) -> String + attr_accessor frequency: String? attr_reader historical_occupancy: String? @@ -138,13 +136,9 @@ module OnebusawaySDK def predicted=: (bool) -> bool - attr_reader predicted_arrival_interval: String? - - def predicted_arrival_interval=: (String) -> String - - attr_reader predicted_departure_interval: String? + attr_accessor predicted_arrival_interval: String? - def predicted_departure_interval=: (String) -> String + attr_accessor predicted_departure_interval: String? attr_reader predicted_occupancy: String? @@ -158,13 +152,9 @@ module OnebusawaySDK def route_short_name=: (String) -> String - attr_reader scheduled_arrival_interval: String? + attr_accessor scheduled_arrival_interval: String? - def scheduled_arrival_interval=: (String) -> String - - attr_reader scheduled_departure_interval: String? - - def scheduled_departure_interval=: (String) -> String + attr_accessor scheduled_departure_interval: String? attr_reader scheduled_track: String? @@ -203,18 +193,18 @@ module OnebusawaySDK vehicle_id: String, ?actual_track: String, ?distance_from_stop: Float, - ?frequency: String, + ?frequency: String?, ?historical_occupancy: String, ?last_update_time: Integer, ?occupancy_status: String, ?predicted: bool, - ?predicted_arrival_interval: String, - ?predicted_departure_interval: String, + ?predicted_arrival_interval: String?, + ?predicted_departure_interval: String?, ?predicted_occupancy: String, ?route_long_name: String, ?route_short_name: String, - ?scheduled_arrival_interval: String, - ?scheduled_departure_interval: String, + ?scheduled_arrival_interval: String?, + ?scheduled_departure_interval: String?, ?scheduled_track: String, ?situation_ids: ::Array[String], ?status: String, @@ -240,18 +230,18 @@ module OnebusawaySDK vehicle_id: String, actual_track: String, distance_from_stop: Float, - frequency: String, + frequency: String?, historical_occupancy: String, last_update_time: Integer, occupancy_status: String, predicted: bool, - predicted_arrival_interval: String, - predicted_departure_interval: String, + predicted_arrival_interval: String?, + predicted_departure_interval: String?, predicted_occupancy: String, route_long_name: String, route_short_name: String, - scheduled_arrival_interval: String, - scheduled_departure_interval: String, + scheduled_arrival_interval: String?, + scheduled_departure_interval: String?, scheduled_track: String, situation_ids: ::Array[String], status: String, @@ -277,7 +267,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: String?, last_known_location: OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus::LastKnownLocation?, last_known_orientation: Float, next_stop: String, @@ -326,9 +316,7 @@ module OnebusawaySDK def closest_stop_time_offset=: (Integer) -> Integer - attr_reader frequency: String? - - def frequency=: (String) -> String + attr_accessor frequency: String? attr_accessor last_known_location: OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus::LastKnownLocation? @@ -384,7 +372,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, ?closest_stop_time_offset: Integer, - ?frequency: String, + ?frequency: String?, ?last_known_location: OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus::LastKnownLocation?, ?last_known_orientation: Float, ?next_stop: String, @@ -414,7 +402,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: String?, last_known_location: OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus::LastKnownLocation?, last_known_orientation: Float, next_stop: String, diff --git a/sig/onebusaway_sdk/models/arrivals_and_departures_for_location_list_response.rbs b/sig/onebusaway_sdk/models/arrivals_and_departures_for_location_list_response.rbs index 0d2068e9..6a557c8b 100644 --- a/sig/onebusaway_sdk/models/arrivals_and_departures_for_location_list_response.rbs +++ b/sig/onebusaway_sdk/models/arrivals_and_departures_for_location_list_response.rbs @@ -99,18 +99,18 @@ module OnebusawaySDK vehicle_id: String, actual_track: String, distance_from_stop: Float, - frequency: String, + frequency: String?, historical_occupancy: String, last_update_time: Integer, occupancy_status: String, predicted: bool, - predicted_arrival_interval: String, - predicted_departure_interval: String, + predicted_arrival_interval: String?, + predicted_departure_interval: String?, predicted_occupancy: String, route_long_name: String, route_short_name: String, - scheduled_arrival_interval: String, - scheduled_departure_interval: String, + scheduled_arrival_interval: String?, + scheduled_departure_interval: String?, scheduled_track: String, situation_ids: ::Array[String], status: String, @@ -158,9 +158,7 @@ module OnebusawaySDK def distance_from_stop=: (Float) -> Float - attr_reader frequency: String? - - def frequency=: (String) -> String + attr_accessor frequency: String? attr_reader historical_occupancy: String? @@ -178,13 +176,9 @@ module OnebusawaySDK def predicted=: (bool) -> bool - attr_reader predicted_arrival_interval: String? - - def predicted_arrival_interval=: (String) -> String - - attr_reader predicted_departure_interval: String? + attr_accessor predicted_arrival_interval: String? - def predicted_departure_interval=: (String) -> String + attr_accessor predicted_departure_interval: String? attr_reader predicted_occupancy: String? @@ -198,13 +192,9 @@ module OnebusawaySDK def route_short_name=: (String) -> String - attr_reader scheduled_arrival_interval: String? + attr_accessor scheduled_arrival_interval: String? - def scheduled_arrival_interval=: (String) -> String - - attr_reader scheduled_departure_interval: String? - - def scheduled_departure_interval=: (String) -> String + attr_accessor scheduled_departure_interval: String? attr_reader scheduled_track: String? @@ -243,18 +233,18 @@ module OnebusawaySDK vehicle_id: String, ?actual_track: String, ?distance_from_stop: Float, - ?frequency: String, + ?frequency: String?, ?historical_occupancy: String, ?last_update_time: Integer, ?occupancy_status: String, ?predicted: bool, - ?predicted_arrival_interval: String, - ?predicted_departure_interval: String, + ?predicted_arrival_interval: String?, + ?predicted_departure_interval: String?, ?predicted_occupancy: String, ?route_long_name: String, ?route_short_name: String, - ?scheduled_arrival_interval: String, - ?scheduled_departure_interval: String, + ?scheduled_arrival_interval: String?, + ?scheduled_departure_interval: String?, ?scheduled_track: String, ?situation_ids: ::Array[String], ?status: String, @@ -280,18 +270,18 @@ module OnebusawaySDK vehicle_id: String, actual_track: String, distance_from_stop: Float, - frequency: String, + frequency: String?, historical_occupancy: String, last_update_time: Integer, occupancy_status: String, predicted: bool, - predicted_arrival_interval: String, - predicted_departure_interval: String, + predicted_arrival_interval: String?, + predicted_departure_interval: String?, predicted_occupancy: String, route_long_name: String, route_short_name: String, - scheduled_arrival_interval: String, - scheduled_departure_interval: String, + scheduled_arrival_interval: String?, + scheduled_departure_interval: String?, scheduled_track: String, situation_ids: ::Array[String], status: String, @@ -317,7 +307,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: String?, last_known_location: OnebusawaySDK::Models::ArrivalsAndDeparturesForLocationListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation?, last_known_orientation: Float, next_stop: String, @@ -366,9 +356,7 @@ module OnebusawaySDK def closest_stop_time_offset=: (Integer) -> Integer - attr_reader frequency: String? - - def frequency=: (String) -> String + attr_accessor frequency: String? attr_accessor last_known_location: OnebusawaySDK::Models::ArrivalsAndDeparturesForLocationListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation? @@ -424,7 +412,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, ?closest_stop_time_offset: Integer, - ?frequency: String, + ?frequency: String?, ?last_known_location: OnebusawaySDK::Models::ArrivalsAndDeparturesForLocationListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation?, ?last_known_orientation: Float, ?next_stop: String, @@ -454,7 +442,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: String?, last_known_location: OnebusawaySDK::Models::ArrivalsAndDeparturesForLocationListResponse::Data::Entry::ArrivalsAndDeparture::TripStatus::LastKnownLocation?, last_known_orientation: Float, next_stop: String, diff --git a/sig/onebusaway_sdk/models/trip_detail_retrieve_response.rbs b/sig/onebusaway_sdk/models/trip_detail_retrieve_response.rbs index d2b232a4..ded08d94 100644 --- a/sig/onebusaway_sdk/models/trip_detail_retrieve_response.rbs +++ b/sig/onebusaway_sdk/models/trip_detail_retrieve_response.rbs @@ -43,7 +43,7 @@ module OnebusawaySDK { trip_id: String, frequency: String?, - schedule: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule, + schedule: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule?, service_date: Integer, situation_ids: ::Array[String], status: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Status @@ -54,11 +54,7 @@ module OnebusawaySDK attr_accessor frequency: String? - attr_reader schedule: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule? - - def schedule=: ( - OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule - ) -> OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule + attr_accessor schedule: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule? attr_reader service_date: Integer? @@ -77,7 +73,7 @@ module OnebusawaySDK def initialize: ( trip_id: String, ?frequency: String?, - ?schedule: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule, + ?schedule: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule?, ?service_date: Integer, ?situation_ids: ::Array[String], ?status: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Status @@ -86,7 +82,7 @@ module OnebusawaySDK def to_hash: -> { trip_id: String, frequency: String?, - schedule: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule, + schedule: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Schedule?, service_date: Integer, situation_ids: ::Array[String], status: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Status @@ -202,7 +198,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: String?, last_known_location: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Status::LastKnownLocation?, last_known_orientation: Float, next_stop: String, @@ -251,9 +247,7 @@ module OnebusawaySDK def closest_stop_time_offset=: (Integer) -> Integer - attr_reader frequency: String? - - def frequency=: (String) -> String + attr_accessor frequency: String? attr_accessor last_known_location: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Status::LastKnownLocation? @@ -309,7 +303,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, ?closest_stop_time_offset: Integer, - ?frequency: String, + ?frequency: String?, ?last_known_location: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Status::LastKnownLocation?, ?last_known_orientation: Float, ?next_stop: String, @@ -339,7 +333,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: String?, last_known_location: OnebusawaySDK::Models::TripDetailRetrieveResponse::Data::Entry::Status::LastKnownLocation?, last_known_orientation: Float, next_stop: String, diff --git a/sig/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rbs b/sig/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rbs index 7323f5a4..5350d8ad 100644 --- a/sig/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rbs +++ b/sig/onebusaway_sdk/models/trip_for_vehicle_retrieve_response.rbs @@ -43,7 +43,7 @@ module OnebusawaySDK { trip_id: String, frequency: String?, - schedule: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule, + schedule: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule?, service_date: Integer, situation_ids: ::Array[String], status: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Status @@ -54,11 +54,7 @@ module OnebusawaySDK attr_accessor frequency: String? - attr_reader schedule: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule? - - def schedule=: ( - OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule - ) -> OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule + attr_accessor schedule: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule? attr_reader service_date: Integer? @@ -77,7 +73,7 @@ module OnebusawaySDK def initialize: ( trip_id: String, ?frequency: String?, - ?schedule: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule, + ?schedule: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule?, ?service_date: Integer, ?situation_ids: ::Array[String], ?status: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Status @@ -86,7 +82,7 @@ module OnebusawaySDK def to_hash: -> { trip_id: String, frequency: String?, - schedule: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule, + schedule: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Schedule?, service_date: Integer, situation_ids: ::Array[String], status: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Status @@ -202,7 +198,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: String?, last_known_location: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Status::LastKnownLocation?, last_known_orientation: Float, next_stop: String, @@ -251,9 +247,7 @@ module OnebusawaySDK def closest_stop_time_offset=: (Integer) -> Integer - attr_reader frequency: String? - - def frequency=: (String) -> String + attr_accessor frequency: String? attr_accessor last_known_location: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Status::LastKnownLocation? @@ -309,7 +303,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, ?closest_stop_time_offset: Integer, - ?frequency: String, + ?frequency: String?, ?last_known_location: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Status::LastKnownLocation?, ?last_known_orientation: Float, ?next_stop: String, @@ -339,7 +333,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: String?, last_known_location: OnebusawaySDK::Models::TripForVehicleRetrieveResponse::Data::Entry::Status::LastKnownLocation?, last_known_orientation: Float, next_stop: String, diff --git a/sig/onebusaway_sdk/models/trips_for_location_list_response.rbs b/sig/onebusaway_sdk/models/trips_for_location_list_response.rbs index 4967d61c..1f6d33bf 100644 --- a/sig/onebusaway_sdk/models/trips_for_location_list_response.rbs +++ b/sig/onebusaway_sdk/models/trips_for_location_list_response.rbs @@ -55,7 +55,7 @@ module OnebusawaySDK type list = { - schedule: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule, + schedule: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule?, status: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Status, trip_id: String, frequency: String?, @@ -64,7 +64,7 @@ module OnebusawaySDK } class List < OnebusawaySDK::Internal::Type::BaseModel - attr_accessor schedule: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule + attr_accessor schedule: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule? attr_accessor status: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Status @@ -81,7 +81,7 @@ module OnebusawaySDK def situation_ids=: (::Array[String]) -> ::Array[String] def initialize: ( - schedule: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule, + schedule: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule?, status: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Status, trip_id: String, ?frequency: String?, @@ -90,7 +90,7 @@ module OnebusawaySDK ) -> void def to_hash: -> { - schedule: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule, + schedule: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Schedule?, status: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Status, trip_id: String, frequency: String?, @@ -208,7 +208,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: String?, last_known_location: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Status::LastKnownLocation?, last_known_orientation: Float, next_stop: String, @@ -257,9 +257,7 @@ module OnebusawaySDK def closest_stop_time_offset=: (Integer) -> Integer - attr_reader frequency: String? - - def frequency=: (String) -> String + attr_accessor frequency: String? attr_accessor last_known_location: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Status::LastKnownLocation? @@ -315,7 +313,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, ?closest_stop_time_offset: Integer, - ?frequency: String, + ?frequency: String?, ?last_known_location: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Status::LastKnownLocation?, ?last_known_orientation: Float, ?next_stop: String, @@ -345,7 +343,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: String?, last_known_location: OnebusawaySDK::Models::TripsForLocationListResponse::Data::List::Status::LastKnownLocation?, last_known_orientation: Float, next_stop: String, diff --git a/sig/onebusaway_sdk/models/trips_for_route_list_response.rbs b/sig/onebusaway_sdk/models/trips_for_route_list_response.rbs index b3288b07..b24259a0 100644 --- a/sig/onebusaway_sdk/models/trips_for_route_list_response.rbs +++ b/sig/onebusaway_sdk/models/trips_for_route_list_response.rbs @@ -48,7 +48,7 @@ module OnebusawaySDK type list = { - schedule: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule, + schedule: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule?, status: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Status, trip_id: String, frequency: String?, @@ -57,7 +57,7 @@ module OnebusawaySDK } class List < OnebusawaySDK::Internal::Type::BaseModel - attr_accessor schedule: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule + attr_accessor schedule: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule? attr_accessor status: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Status @@ -74,7 +74,7 @@ module OnebusawaySDK def situation_ids=: (::Array[String]) -> ::Array[String] def initialize: ( - schedule: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule, + schedule: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule?, status: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Status, trip_id: String, ?frequency: String?, @@ -83,7 +83,7 @@ module OnebusawaySDK ) -> void def to_hash: -> { - schedule: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule, + schedule: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Schedule?, status: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Status, trip_id: String, frequency: String?, @@ -201,7 +201,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: String?, last_known_location: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Status::LastKnownLocation?, last_known_orientation: Float, next_stop: String, @@ -250,9 +250,7 @@ module OnebusawaySDK def closest_stop_time_offset=: (Integer) -> Integer - attr_reader frequency: String? - - def frequency=: (String) -> String + attr_accessor frequency: String? attr_accessor last_known_location: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Status::LastKnownLocation? @@ -308,7 +306,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, ?closest_stop_time_offset: Integer, - ?frequency: String, + ?frequency: String?, ?last_known_location: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Status::LastKnownLocation?, ?last_known_orientation: Float, ?next_stop: String, @@ -338,7 +336,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: String?, last_known_location: OnebusawaySDK::Models::TripsForRouteListResponse::Data::List::Status::LastKnownLocation?, last_known_orientation: Float, next_stop: String, diff --git a/sig/onebusaway_sdk/models/vehicles_for_agency_list_response.rbs b/sig/onebusaway_sdk/models/vehicles_for_agency_list_response.rbs index 474c8512..ecd280cc 100644 --- a/sig/onebusaway_sdk/models/vehicles_for_agency_list_response.rbs +++ b/sig/onebusaway_sdk/models/vehicles_for_agency_list_response.rbs @@ -167,7 +167,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: String?, last_known_location: OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus::LastKnownLocation?, last_known_orientation: Float, next_stop: String, @@ -216,9 +216,7 @@ module OnebusawaySDK def closest_stop_time_offset=: (Integer) -> Integer - attr_reader frequency: String? - - def frequency=: (String) -> String + attr_accessor frequency: String? attr_accessor last_known_location: OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus::LastKnownLocation? @@ -274,7 +272,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, ?closest_stop_time_offset: Integer, - ?frequency: String, + ?frequency: String?, ?last_known_location: OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus::LastKnownLocation?, ?last_known_orientation: Float, ?next_stop: String, @@ -304,7 +302,7 @@ module OnebusawaySDK status: String, total_distance_along_trip: Float, closest_stop_time_offset: Integer, - frequency: String, + frequency: String?, last_known_location: OnebusawaySDK::Models::VehiclesForAgencyListResponse::Data::List::TripStatus::LastKnownLocation?, last_known_orientation: Float, next_stop: String, From 2eaa70a609a71f217c455ca2ec9536166f5b6d0e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 22:10:25 +0000 Subject: [PATCH 2/2] release: 1.9.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/onebusaway_sdk/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c523ce19..c3c95522 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.8.0" + ".": "1.9.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 89cf0511..3e3e14e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.9.0 (2026-06-01) + +Full Changelog: [v1.8.0...v1.9.0](https://github.com/OneBusAway/ruby-sdk/compare/v1.8.0...v1.9.0) + +### Features + +* **api:** api update ([2e35daf](https://github.com/OneBusAway/ruby-sdk/commit/2e35daf2cb318e35f1506f31487797b630995242)) + ## 1.8.0 (2026-05-20) Full Changelog: [v1.7.1...v1.8.0](https://github.com/OneBusAway/ruby-sdk/compare/v1.7.1...v1.8.0) diff --git a/Gemfile.lock b/Gemfile.lock index 9956f1d5..ecb70b6e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - onebusaway-sdk (1.8.0) + onebusaway-sdk (1.9.0) cgi connection_pool diff --git a/README.md b/README.md index d101dbbe..8b71e240 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "onebusaway-sdk", "~> 1.8.0" +gem "onebusaway-sdk", "~> 1.9.0" ``` diff --git a/lib/onebusaway_sdk/version.rb b/lib/onebusaway_sdk/version.rb index d6e00745..db9b34e5 100644 --- a/lib/onebusaway_sdk/version.rb +++ b/lib/onebusaway_sdk/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module OnebusawaySDK - VERSION = "1.8.0" + VERSION = "1.9.0" end