diff --git a/.release-please-manifest.json b/.release-please-manifest.json index eb4e0dba..caf14871 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.10.0" + ".": "1.11.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 5a004498..1e6aa3d2 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-e8511c379642404d73fd2ff068f81d845054108160ccd58343021bbd0b444a37.yml -openapi_spec_hash: b8824d511c16ed314dc7cee996f4fd97 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit/open-transit-da4eecc88401fd486b0b8ac2a7b3f442748713e3128d878c7f3e24ea7f65f31d.yml +openapi_spec_hash: 8df6b1871782bcd2bd8fb1fb2bbc2694 config_hash: c28ddf5b7754155603d9fd1c5fcaeeff diff --git a/CHANGELOG.md b/CHANGELOG.md index 627be90b..0b8fed7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.11.0 (2026-07-11) + +Full Changelog: [v1.10.0...v1.11.0](https://github.com/OneBusAway/ruby-sdk/compare/v1.10.0...v1.11.0) + +### Features + +* **api:** api update ([f00c9a8](https://github.com/OneBusAway/ruby-sdk/commit/f00c9a8e96966ace3221cb12601a56c202506a9c)) + ## 1.10.0 (2026-07-09) Full Changelog: [v1.9.2...v1.10.0](https://github.com/OneBusAway/ruby-sdk/compare/v1.9.2...v1.10.0) diff --git a/Gemfile.lock b/Gemfile.lock index 255faace..75555a20 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - onebusaway-sdk (1.10.0) + onebusaway-sdk (1.11.0) cgi connection_pool diff --git a/README.md b/README.md index 44f1fd2e..17c4d334 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.10.0" +gem "onebusaway-sdk", "~> 1.11.0" ``` diff --git a/lib/onebusaway_sdk/models/routes_for_location_list_params.rb b/lib/onebusaway_sdk/models/routes_for_location_list_params.rb index 52f46d05..29ca35e6 100644 --- a/lib/onebusaway_sdk/models/routes_for_location_list_params.rb +++ b/lib/onebusaway_sdk/models/routes_for_location_list_params.rb @@ -8,20 +8,22 @@ class RoutesForLocationListParams < OnebusawaySDK::Internal::Type::BaseModel include OnebusawaySDK::Internal::Type::RequestParameters # @!attribute lat + # If omitted, defaults to 0.0. # - # @return [Float] - required :lat, Float - - # @!attribute lon - # - # @return [Float] - required :lon, Float + # @return [Float, nil] + optional :lat, Float # @!attribute lat_span # # @return [Float, nil] optional :lat_span, Float + # @!attribute lon + # If omitted, defaults to 0.0. + # + # @return [Float, nil] + optional :lon, Float + # @!attribute lon_span # # @return [Float, nil] @@ -37,13 +39,19 @@ class RoutesForLocationListParams < OnebusawaySDK::Internal::Type::BaseModel # @return [Float, nil] optional :radius, Float - # @!method initialize(lat:, lon:, lat_span: nil, lon_span: nil, query: nil, radius: nil, request_options: {}) - # @param lat [Float] - # @param lon [Float] + # @!method initialize(lat: nil, lat_span: nil, lon: nil, lon_span: nil, query: nil, radius: nil, request_options: {}) + # @param lat [Float] If omitted, defaults to 0.0. + # # @param lat_span [Float] + # + # @param lon [Float] If omitted, defaults to 0.0. + # # @param lon_span [Float] + # # @param query [String] + # # @param radius [Float] + # # @param request_options [OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}] end end diff --git a/lib/onebusaway_sdk/models/stops_for_location_list_params.rb b/lib/onebusaway_sdk/models/stops_for_location_list_params.rb index 023e2d46..afb1c3ac 100644 --- a/lib/onebusaway_sdk/models/stops_for_location_list_params.rb +++ b/lib/onebusaway_sdk/models/stops_for_location_list_params.rb @@ -8,14 +8,10 @@ class StopsForLocationListParams < OnebusawaySDK::Internal::Type::BaseModel include OnebusawaySDK::Internal::Type::RequestParameters # @!attribute lat + # If omitted, defaults to 0.0. # - # @return [Float] - required :lat, Float - - # @!attribute lon - # - # @return [Float] - required :lon, Float + # @return [Float, nil] + optional :lat, Float # @!attribute lat_span # An alternative to radius to set the search bounding box (optional) @@ -23,6 +19,12 @@ class StopsForLocationListParams < OnebusawaySDK::Internal::Type::BaseModel # @return [Float, nil] optional :lat_span, Float + # @!attribute lon + # If omitted, defaults to 0.0. + # + # @return [Float, nil] + optional :lon, Float + # @!attribute lon_span # An alternative to radius to set the search bounding box (optional) # @@ -41,13 +43,13 @@ class StopsForLocationListParams < OnebusawaySDK::Internal::Type::BaseModel # @return [Float, nil] optional :radius, Float - # @!method initialize(lat:, lon:, lat_span: nil, lon_span: nil, query: nil, radius: nil, request_options: {}) - # @param lat [Float] - # - # @param lon [Float] + # @!method initialize(lat: nil, lat_span: nil, lon: nil, lon_span: nil, query: nil, radius: nil, request_options: {}) + # @param lat [Float] If omitted, defaults to 0.0. # # @param lat_span [Float] An alternative to radius to set the search bounding box (optional) # + # @param lon [Float] If omitted, defaults to 0.0. + # # @param lon_span [Float] An alternative to radius to set the search bounding box (optional) # # @param query [String] A search query string to filter the results diff --git a/lib/onebusaway_sdk/models/trips_for_location_list_params.rb b/lib/onebusaway_sdk/models/trips_for_location_list_params.rb index c63bc129..f86e7d9f 100644 --- a/lib/onebusaway_sdk/models/trips_for_location_list_params.rb +++ b/lib/onebusaway_sdk/models/trips_for_location_list_params.rb @@ -7,24 +7,12 @@ class TripsForLocationListParams < OnebusawaySDK::Internal::Type::BaseModel extend OnebusawaySDK::Internal::Type::RequestParameters::Converter include OnebusawaySDK::Internal::Type::RequestParameters - # @!attribute lat - # The latitude coordinate of the search center - # - # @return [Float] - required :lat, Float - # @!attribute lat_span # Latitude span of the search bounding box # # @return [Float] required :lat_span, Float - # @!attribute lon - # The longitude coordinate of the search center - # - # @return [Float] - required :lon, Float - # @!attribute lon_span # Longitude span of the search bounding box # @@ -45,28 +33,40 @@ class TripsForLocationListParams < OnebusawaySDK::Internal::Type::BaseModel # @return [Boolean, nil] optional :include_trip, OnebusawaySDK::Internal::Type::Boolean + # @!attribute lat + # The latitude coordinate of the search center. If omitted, defaults to 0.0. + # + # @return [Float, nil] + optional :lat, Float + + # @!attribute lon + # The longitude coordinate of the search center. If omitted, defaults to 0.0. + # + # @return [Float, nil] + optional :lon, Float + # @!attribute time # Specific time for the query. Defaults to the current time. # # @return [Integer, nil] optional :time, Integer - # @!method initialize(lat:, lat_span:, lon:, lon_span:, include_schedule: nil, include_trip: nil, time: nil, request_options: {}) + # @!method initialize(lat_span:, lon_span:, include_schedule: nil, include_trip: nil, lat: nil, lon: nil, time: nil, request_options: {}) # Some parameter documentations has been truncated, see # {OnebusawaySDK::Models::TripsForLocationListParams} for more details. # - # @param lat [Float] The latitude coordinate of the search center - # # @param lat_span [Float] Latitude span of the search bounding box # - # @param lon [Float] The longitude coordinate of the search center - # # @param lon_span [Float] Longitude span of the search bounding box # # @param include_schedule [Boolean] Whether to include full schedule elements in the tripDetails section. Defaults t # # @param include_trip [Boolean] Whether to include full trip elements in the references section. Defaults to tru # + # @param lat [Float] The latitude coordinate of the search center. If omitted, defaults to 0.0. + # + # @param lon [Float] The longitude coordinate of the search center. If omitted, defaults to 0.0. + # # @param time [Integer] Specific time for the query. Defaults to the current time. # # @param request_options [OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}] diff --git a/lib/onebusaway_sdk/resources/routes_for_location.rb b/lib/onebusaway_sdk/resources/routes_for_location.rb index e2fc4e2e..e9dbf9b6 100644 --- a/lib/onebusaway_sdk/resources/routes_for_location.rb +++ b/lib/onebusaway_sdk/resources/routes_for_location.rb @@ -5,20 +5,26 @@ module Resources class RoutesForLocation # routes-for-location # - # @overload list(lat:, lon:, lat_span: nil, lon_span: nil, query: nil, radius: nil, request_options: {}) + # @overload list(lat: nil, lat_span: nil, lon: nil, lon_span: nil, query: nil, radius: nil, request_options: {}) + # + # @param lat [Float] If omitted, defaults to 0.0. # - # @param lat [Float] - # @param lon [Float] # @param lat_span [Float] + # + # @param lon [Float] If omitted, defaults to 0.0. + # # @param lon_span [Float] + # # @param query [String] + # # @param radius [Float] + # # @param request_options [OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [OnebusawaySDK::Models::RoutesForLocationListResponse] # # @see OnebusawaySDK::Models::RoutesForLocationListParams - def list(params) + def list(params = {}) parsed, options = OnebusawaySDK::RoutesForLocationListParams.dump_request(params) query = OnebusawaySDK::Internal::Util.encode_query_params(parsed) @client.request( diff --git a/lib/onebusaway_sdk/resources/stops_for_location.rb b/lib/onebusaway_sdk/resources/stops_for_location.rb index 05475188..be7b9d69 100644 --- a/lib/onebusaway_sdk/resources/stops_for_location.rb +++ b/lib/onebusaway_sdk/resources/stops_for_location.rb @@ -5,14 +5,14 @@ module Resources class StopsForLocation # stops-for-location # - # @overload list(lat:, lon:, lat_span: nil, lon_span: nil, query: nil, radius: nil, request_options: {}) + # @overload list(lat: nil, lat_span: nil, lon: nil, lon_span: nil, query: nil, radius: nil, request_options: {}) # - # @param lat [Float] - # - # @param lon [Float] + # @param lat [Float] If omitted, defaults to 0.0. # # @param lat_span [Float] An alternative to radius to set the search bounding box (optional) # + # @param lon [Float] If omitted, defaults to 0.0. + # # @param lon_span [Float] An alternative to radius to set the search bounding box (optional) # # @param query [String] A search query string to filter the results @@ -24,7 +24,7 @@ class StopsForLocation # @return [OnebusawaySDK::Models::StopsForLocationListResponse] # # @see OnebusawaySDK::Models::StopsForLocationListParams - def list(params) + def list(params = {}) parsed, options = OnebusawaySDK::StopsForLocationListParams.dump_request(params) query = OnebusawaySDK::Internal::Util.encode_query_params(parsed) @client.request( diff --git a/lib/onebusaway_sdk/resources/trips_for_location.rb b/lib/onebusaway_sdk/resources/trips_for_location.rb index fa6c2edc..511807c7 100644 --- a/lib/onebusaway_sdk/resources/trips_for_location.rb +++ b/lib/onebusaway_sdk/resources/trips_for_location.rb @@ -8,20 +8,20 @@ class TripsForLocation # # Retrieve trips for a given location # - # @overload list(lat:, lat_span:, lon:, lon_span:, include_schedule: nil, include_trip: nil, time: nil, request_options: {}) - # - # @param lat [Float] The latitude coordinate of the search center + # @overload list(lat_span:, lon_span:, include_schedule: nil, include_trip: nil, lat: nil, lon: nil, time: nil, request_options: {}) # # @param lat_span [Float] Latitude span of the search bounding box # - # @param lon [Float] The longitude coordinate of the search center - # # @param lon_span [Float] Longitude span of the search bounding box # # @param include_schedule [Boolean] Whether to include full schedule elements in the tripDetails section. Defaults t # # @param include_trip [Boolean] Whether to include full trip elements in the references section. Defaults to tru # + # @param lat [Float] The latitude coordinate of the search center. If omitted, defaults to 0.0. + # + # @param lon [Float] The longitude coordinate of the search center. If omitted, defaults to 0.0. + # # @param time [Integer] Specific time for the query. Defaults to the current time. # # @param request_options [OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}, nil] diff --git a/lib/onebusaway_sdk/version.rb b/lib/onebusaway_sdk/version.rb index a2ce88a8..d3da59a3 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.10.0" + VERSION = "1.11.0" end diff --git a/rbi/onebusaway_sdk/models/routes_for_location_list_params.rbi b/rbi/onebusaway_sdk/models/routes_for_location_list_params.rbi index 437d35e6..a1726c04 100644 --- a/rbi/onebusaway_sdk/models/routes_for_location_list_params.rbi +++ b/rbi/onebusaway_sdk/models/routes_for_location_list_params.rbi @@ -14,11 +14,12 @@ module OnebusawaySDK ) end - sig { returns(Float) } - attr_accessor :lat + # If omitted, defaults to 0.0. + sig { returns(T.nilable(Float)) } + attr_reader :lat - sig { returns(Float) } - attr_accessor :lon + sig { params(lat: Float).void } + attr_writer :lat sig { returns(T.nilable(Float)) } attr_reader :lat_span @@ -26,6 +27,13 @@ module OnebusawaySDK sig { params(lat_span: Float).void } attr_writer :lat_span + # If omitted, defaults to 0.0. + sig { returns(T.nilable(Float)) } + attr_reader :lon + + sig { params(lon: Float).void } + attr_writer :lon + sig { returns(T.nilable(Float)) } attr_reader :lon_span @@ -47,8 +55,8 @@ module OnebusawaySDK sig do params( lat: Float, - lon: Float, lat_span: Float, + lon: Float, lon_span: Float, query: String, radius: Float, @@ -56,9 +64,11 @@ module OnebusawaySDK ).returns(T.attached_class) end def self.new( - lat:, - lon:, + # If omitted, defaults to 0.0. + lat: nil, lat_span: nil, + # If omitted, defaults to 0.0. + lon: nil, lon_span: nil, query: nil, radius: nil, @@ -70,8 +80,8 @@ module OnebusawaySDK override.returns( { lat: Float, - lon: Float, lat_span: Float, + lon: Float, lon_span: Float, query: String, radius: Float, diff --git a/rbi/onebusaway_sdk/models/stops_for_location_list_params.rbi b/rbi/onebusaway_sdk/models/stops_for_location_list_params.rbi index ffeab3bc..eb3df188 100644 --- a/rbi/onebusaway_sdk/models/stops_for_location_list_params.rbi +++ b/rbi/onebusaway_sdk/models/stops_for_location_list_params.rbi @@ -14,11 +14,12 @@ module OnebusawaySDK ) end - sig { returns(Float) } - attr_accessor :lat + # If omitted, defaults to 0.0. + sig { returns(T.nilable(Float)) } + attr_reader :lat - sig { returns(Float) } - attr_accessor :lon + sig { params(lat: Float).void } + attr_writer :lat # An alternative to radius to set the search bounding box (optional) sig { returns(T.nilable(Float)) } @@ -27,6 +28,13 @@ module OnebusawaySDK sig { params(lat_span: Float).void } attr_writer :lat_span + # If omitted, defaults to 0.0. + sig { returns(T.nilable(Float)) } + attr_reader :lon + + sig { params(lon: Float).void } + attr_writer :lon + # An alternative to radius to set the search bounding box (optional) sig { returns(T.nilable(Float)) } attr_reader :lon_span @@ -51,8 +59,8 @@ module OnebusawaySDK sig do params( lat: Float, - lon: Float, lat_span: Float, + lon: Float, lon_span: Float, query: String, radius: Float, @@ -60,10 +68,12 @@ module OnebusawaySDK ).returns(T.attached_class) end def self.new( - lat:, - lon:, + # If omitted, defaults to 0.0. + lat: nil, # An alternative to radius to set the search bounding box (optional) lat_span: nil, + # If omitted, defaults to 0.0. + lon: nil, # An alternative to radius to set the search bounding box (optional) lon_span: nil, # A search query string to filter the results @@ -78,8 +88,8 @@ module OnebusawaySDK override.returns( { lat: Float, - lon: Float, lat_span: Float, + lon: Float, lon_span: Float, query: String, radius: Float, diff --git a/rbi/onebusaway_sdk/models/trips_for_location_list_params.rbi b/rbi/onebusaway_sdk/models/trips_for_location_list_params.rbi index bd32bca8..a850eae3 100644 --- a/rbi/onebusaway_sdk/models/trips_for_location_list_params.rbi +++ b/rbi/onebusaway_sdk/models/trips_for_location_list_params.rbi @@ -14,18 +14,10 @@ module OnebusawaySDK ) end - # The latitude coordinate of the search center - sig { returns(Float) } - attr_accessor :lat - # Latitude span of the search bounding box sig { returns(Float) } attr_accessor :lat_span - # The longitude coordinate of the search center - sig { returns(Float) } - attr_accessor :lon - # Longitude span of the search bounding box sig { returns(Float) } attr_accessor :lon_span @@ -46,6 +38,20 @@ module OnebusawaySDK sig { params(include_trip: T::Boolean).void } attr_writer :include_trip + # The latitude coordinate of the search center. If omitted, defaults to 0.0. + sig { returns(T.nilable(Float)) } + attr_reader :lat + + sig { params(lat: Float).void } + attr_writer :lat + + # The longitude coordinate of the search center. If omitted, defaults to 0.0. + sig { returns(T.nilable(Float)) } + attr_reader :lon + + sig { params(lon: Float).void } + attr_writer :lon + # Specific time for the query. Defaults to the current time. sig { returns(T.nilable(Integer)) } attr_reader :time @@ -55,23 +61,19 @@ module OnebusawaySDK sig do params( - lat: Float, lat_span: Float, - lon: Float, lon_span: Float, include_schedule: T::Boolean, include_trip: T::Boolean, + lat: Float, + lon: Float, time: Integer, request_options: OnebusawaySDK::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( - # The latitude coordinate of the search center - lat:, # Latitude span of the search bounding box lat_span:, - # The longitude coordinate of the search center - lon:, # Longitude span of the search bounding box lon_span:, # Whether to include full schedule elements in the tripDetails section. Defaults @@ -80,6 +82,10 @@ module OnebusawaySDK # Whether to include full trip elements in the references section. Defaults to # true. include_trip: nil, + # The latitude coordinate of the search center. If omitted, defaults to 0.0. + lat: nil, + # The longitude coordinate of the search center. If omitted, defaults to 0.0. + lon: nil, # Specific time for the query. Defaults to the current time. time: nil, request_options: {} @@ -89,12 +95,12 @@ module OnebusawaySDK sig do override.returns( { - lat: Float, lat_span: Float, - lon: Float, lon_span: Float, include_schedule: T::Boolean, include_trip: T::Boolean, + lat: Float, + lon: Float, time: Integer, request_options: OnebusawaySDK::RequestOptions } diff --git a/rbi/onebusaway_sdk/resources/routes_for_location.rbi b/rbi/onebusaway_sdk/resources/routes_for_location.rbi index 083201de..457c19d0 100644 --- a/rbi/onebusaway_sdk/resources/routes_for_location.rbi +++ b/rbi/onebusaway_sdk/resources/routes_for_location.rbi @@ -7,8 +7,8 @@ module OnebusawaySDK sig do params( lat: Float, - lon: Float, lat_span: Float, + lon: Float, lon_span: Float, query: String, radius: Float, @@ -16,9 +16,11 @@ module OnebusawaySDK ).returns(OnebusawaySDK::Models::RoutesForLocationListResponse) end def list( - lat:, - lon:, + # If omitted, defaults to 0.0. + lat: nil, lat_span: nil, + # If omitted, defaults to 0.0. + lon: nil, lon_span: nil, query: nil, radius: nil, diff --git a/rbi/onebusaway_sdk/resources/stops_for_location.rbi b/rbi/onebusaway_sdk/resources/stops_for_location.rbi index 627e43a5..0fc26ba4 100644 --- a/rbi/onebusaway_sdk/resources/stops_for_location.rbi +++ b/rbi/onebusaway_sdk/resources/stops_for_location.rbi @@ -7,8 +7,8 @@ module OnebusawaySDK sig do params( lat: Float, - lon: Float, lat_span: Float, + lon: Float, lon_span: Float, query: String, radius: Float, @@ -16,10 +16,12 @@ module OnebusawaySDK ).returns(OnebusawaySDK::Models::StopsForLocationListResponse) end def list( - lat:, - lon:, + # If omitted, defaults to 0.0. + lat: nil, # An alternative to radius to set the search bounding box (optional) lat_span: nil, + # If omitted, defaults to 0.0. + lon: nil, # An alternative to radius to set the search bounding box (optional) lon_span: nil, # A search query string to filter the results diff --git a/rbi/onebusaway_sdk/resources/trips_for_location.rbi b/rbi/onebusaway_sdk/resources/trips_for_location.rbi index 89717541..37bc22c2 100644 --- a/rbi/onebusaway_sdk/resources/trips_for_location.rbi +++ b/rbi/onebusaway_sdk/resources/trips_for_location.rbi @@ -6,23 +6,19 @@ module OnebusawaySDK # Retrieve trips for a given location sig do params( - lat: Float, lat_span: Float, - lon: Float, lon_span: Float, include_schedule: T::Boolean, include_trip: T::Boolean, + lat: Float, + lon: Float, time: Integer, request_options: OnebusawaySDK::RequestOptions::OrHash ).returns(OnebusawaySDK::Models::TripsForLocationListResponse) end def list( - # The latitude coordinate of the search center - lat:, # Latitude span of the search bounding box lat_span:, - # The longitude coordinate of the search center - lon:, # Longitude span of the search bounding box lon_span:, # Whether to include full schedule elements in the tripDetails section. Defaults @@ -31,6 +27,10 @@ module OnebusawaySDK # Whether to include full trip elements in the references section. Defaults to # true. include_trip: nil, + # The latitude coordinate of the search center. If omitted, defaults to 0.0. + lat: nil, + # The longitude coordinate of the search center. If omitted, defaults to 0.0. + lon: nil, # Specific time for the query. Defaults to the current time. time: nil, request_options: {} diff --git a/sig/onebusaway_sdk/models/routes_for_location_list_params.rbs b/sig/onebusaway_sdk/models/routes_for_location_list_params.rbs index 5660c564..b7906cb1 100644 --- a/sig/onebusaway_sdk/models/routes_for_location_list_params.rbs +++ b/sig/onebusaway_sdk/models/routes_for_location_list_params.rbs @@ -3,8 +3,8 @@ module OnebusawaySDK type routes_for_location_list_params = { lat: Float, - lon: Float, lat_span: Float, + lon: Float, lon_span: Float, query: String, radius: Float @@ -15,14 +15,18 @@ module OnebusawaySDK extend OnebusawaySDK::Internal::Type::RequestParameters::Converter include OnebusawaySDK::Internal::Type::RequestParameters - attr_accessor lat: Float + attr_reader lat: Float? - attr_accessor lon: Float + def lat=: (Float) -> Float attr_reader lat_span: Float? def lat_span=: (Float) -> Float + attr_reader lon: Float? + + def lon=: (Float) -> Float + attr_reader lon_span: Float? def lon_span=: (Float) -> Float @@ -36,9 +40,9 @@ module OnebusawaySDK def radius=: (Float) -> Float def initialize: ( - lat: Float, - lon: Float, + ?lat: Float, ?lat_span: Float, + ?lon: Float, ?lon_span: Float, ?query: String, ?radius: Float, @@ -47,8 +51,8 @@ module OnebusawaySDK def to_hash: -> { lat: Float, - lon: Float, lat_span: Float, + lon: Float, lon_span: Float, query: String, radius: Float, diff --git a/sig/onebusaway_sdk/models/stops_for_location_list_params.rbs b/sig/onebusaway_sdk/models/stops_for_location_list_params.rbs index 19ef4edd..27abd755 100644 --- a/sig/onebusaway_sdk/models/stops_for_location_list_params.rbs +++ b/sig/onebusaway_sdk/models/stops_for_location_list_params.rbs @@ -3,8 +3,8 @@ module OnebusawaySDK type stops_for_location_list_params = { lat: Float, - lon: Float, lat_span: Float, + lon: Float, lon_span: Float, query: String, radius: Float @@ -15,14 +15,18 @@ module OnebusawaySDK extend OnebusawaySDK::Internal::Type::RequestParameters::Converter include OnebusawaySDK::Internal::Type::RequestParameters - attr_accessor lat: Float + attr_reader lat: Float? - attr_accessor lon: Float + def lat=: (Float) -> Float attr_reader lat_span: Float? def lat_span=: (Float) -> Float + attr_reader lon: Float? + + def lon=: (Float) -> Float + attr_reader lon_span: Float? def lon_span=: (Float) -> Float @@ -36,9 +40,9 @@ module OnebusawaySDK def radius=: (Float) -> Float def initialize: ( - lat: Float, - lon: Float, + ?lat: Float, ?lat_span: Float, + ?lon: Float, ?lon_span: Float, ?query: String, ?radius: Float, @@ -47,8 +51,8 @@ module OnebusawaySDK def to_hash: -> { lat: Float, - lon: Float, lat_span: Float, + lon: Float, lon_span: Float, query: String, radius: Float, diff --git a/sig/onebusaway_sdk/models/trips_for_location_list_params.rbs b/sig/onebusaway_sdk/models/trips_for_location_list_params.rbs index 4faf1a91..3ae93479 100644 --- a/sig/onebusaway_sdk/models/trips_for_location_list_params.rbs +++ b/sig/onebusaway_sdk/models/trips_for_location_list_params.rbs @@ -2,12 +2,12 @@ module OnebusawaySDK module Models type trips_for_location_list_params = { - lat: Float, lat_span: Float, - lon: Float, lon_span: Float, include_schedule: bool, include_trip: bool, + lat: Float, + lon: Float, time: Integer } & OnebusawaySDK::Internal::Type::request_parameters @@ -16,12 +16,8 @@ module OnebusawaySDK extend OnebusawaySDK::Internal::Type::RequestParameters::Converter include OnebusawaySDK::Internal::Type::RequestParameters - attr_accessor lat: Float - attr_accessor lat_span: Float - attr_accessor lon: Float - attr_accessor lon_span: Float attr_reader include_schedule: bool? @@ -32,28 +28,36 @@ module OnebusawaySDK def include_trip=: (bool) -> bool + attr_reader lat: Float? + + def lat=: (Float) -> Float + + attr_reader lon: Float? + + def lon=: (Float) -> Float + attr_reader time: Integer? def time=: (Integer) -> Integer def initialize: ( - lat: Float, lat_span: Float, - lon: Float, lon_span: Float, ?include_schedule: bool, ?include_trip: bool, + ?lat: Float, + ?lon: Float, ?time: Integer, ?request_options: OnebusawaySDK::request_opts ) -> void def to_hash: -> { - lat: Float, lat_span: Float, - lon: Float, lon_span: Float, include_schedule: bool, include_trip: bool, + lat: Float, + lon: Float, time: Integer, request_options: OnebusawaySDK::RequestOptions } diff --git a/sig/onebusaway_sdk/resources/routes_for_location.rbs b/sig/onebusaway_sdk/resources/routes_for_location.rbs index 007cce4c..b2d47171 100644 --- a/sig/onebusaway_sdk/resources/routes_for_location.rbs +++ b/sig/onebusaway_sdk/resources/routes_for_location.rbs @@ -2,9 +2,9 @@ module OnebusawaySDK module Resources class RoutesForLocation def list: ( - lat: Float, - lon: Float, + ?lat: Float, ?lat_span: Float, + ?lon: Float, ?lon_span: Float, ?query: String, ?radius: Float, diff --git a/sig/onebusaway_sdk/resources/stops_for_location.rbs b/sig/onebusaway_sdk/resources/stops_for_location.rbs index 7b4a1d0e..d5a9079b 100644 --- a/sig/onebusaway_sdk/resources/stops_for_location.rbs +++ b/sig/onebusaway_sdk/resources/stops_for_location.rbs @@ -2,9 +2,9 @@ module OnebusawaySDK module Resources class StopsForLocation def list: ( - lat: Float, - lon: Float, + ?lat: Float, ?lat_span: Float, + ?lon: Float, ?lon_span: Float, ?query: String, ?radius: Float, diff --git a/sig/onebusaway_sdk/resources/trips_for_location.rbs b/sig/onebusaway_sdk/resources/trips_for_location.rbs index 8d0d8a0b..73361ec4 100644 --- a/sig/onebusaway_sdk/resources/trips_for_location.rbs +++ b/sig/onebusaway_sdk/resources/trips_for_location.rbs @@ -2,12 +2,12 @@ module OnebusawaySDK module Resources class TripsForLocation def list: ( - lat: Float, lat_span: Float, - lon: Float, lon_span: Float, ?include_schedule: bool, ?include_trip: bool, + ?lat: Float, + ?lon: Float, ?time: Integer, ?request_options: OnebusawaySDK::request_opts ) -> OnebusawaySDK::Models::TripsForLocationListResponse diff --git a/test/onebusaway_sdk/resources/routes_for_location_test.rb b/test/onebusaway_sdk/resources/routes_for_location_test.rb index 7ab19b99..a72e613c 100644 --- a/test/onebusaway_sdk/resources/routes_for_location_test.rb +++ b/test/onebusaway_sdk/resources/routes_for_location_test.rb @@ -3,8 +3,8 @@ require_relative "../test_helper" class OnebusawaySDK::Test::Resources::RoutesForLocationTest < OnebusawaySDK::Test::ResourceTest - def test_list_required_params - response = @onebusaway_sdk.routes_for_location.list(lat: 0, lon: 0) + def test_list + response = @onebusaway_sdk.routes_for_location.list assert_pattern do response => OnebusawaySDK::Models::RoutesForLocationListResponse diff --git a/test/onebusaway_sdk/resources/stops_for_location_test.rb b/test/onebusaway_sdk/resources/stops_for_location_test.rb index 1c6c7e91..e00793a9 100644 --- a/test/onebusaway_sdk/resources/stops_for_location_test.rb +++ b/test/onebusaway_sdk/resources/stops_for_location_test.rb @@ -3,8 +3,8 @@ require_relative "../test_helper" class OnebusawaySDK::Test::Resources::StopsForLocationTest < OnebusawaySDK::Test::ResourceTest - def test_list_required_params - response = @onebusaway_sdk.stops_for_location.list(lat: 0, lon: 0) + def test_list + response = @onebusaway_sdk.stops_for_location.list assert_pattern do response => OnebusawaySDK::Models::StopsForLocationListResponse diff --git a/test/onebusaway_sdk/resources/trips_for_location_test.rb b/test/onebusaway_sdk/resources/trips_for_location_test.rb index a221fff2..8ba3bca0 100644 --- a/test/onebusaway_sdk/resources/trips_for_location_test.rb +++ b/test/onebusaway_sdk/resources/trips_for_location_test.rb @@ -4,7 +4,7 @@ class OnebusawaySDK::Test::Resources::TripsForLocationTest < OnebusawaySDK::Test::ResourceTest def test_list_required_params - response = @onebusaway_sdk.trips_for_location.list(lat: 0, lat_span: 0, lon: 0, lon_span: 0) + response = @onebusaway_sdk.trips_for_location.list(lat_span: 0, lon_span: 0) assert_pattern do response => OnebusawaySDK::Models::TripsForLocationListResponse