class OnebusawaySDK::Resources::SearchForStop
def initialize(client:)
-
client
(OnebusawaySDK::Client
) --
Other tags:
- Api: - private
def initialize(client:) @client = client end
def list(params)
- See: OnebusawaySDK::Models::SearchForStopListParams -
Returns:
-
(OnebusawaySDK::Models::SearchForStopListResponse)
-
Parameters:
-
request_options
(OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}, nil
) -- -
max_count
(Integer
) -- The max number of results to return. Defaults to 20. -
input
(String
) -- The string to search for.
Overloads:
-
list(input:, max_count: nil, request_options: {})
def list(params) parsed, options = OnebusawaySDK::SearchForStopListParams.dump_request(params) @client.request( method: :get, path: "api/where/search/stop.json", query: parsed.transform_keys(max_count: "maxCount"), model: OnebusawaySDK::Models::SearchForStopListResponse, options: options ) end