class OnebusawaySDK::Resources::Stop

def initialize(client:)

Parameters:
  • client (OnebusawaySDK::Client) --

Other tags:
    Api: - private
def initialize(client:)
  @client = client
end

def retrieve(stop_id, params = {})

Other tags:
    See: OnebusawaySDK::Models::StopRetrieveParams -

Returns:
  • (OnebusawaySDK::Models::StopRetrieveResponse) -

Parameters:
  • request_options (OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}, nil) --
  • stop_id (String) -- ID of the stop

Overloads:
  • retrieve(stop_id, request_options: {})
def retrieve(stop_id, params = {})
  @client.request(
    method: :get,
    path: ["api/where/stop/%1$s.json", stop_id],
    model: OnebusawaySDK::Models::StopRetrieveResponse,
    options: params[:request_options]
  )
end