class OnebusawaySDK::Resources::RouteIDsForAgency

def initialize(client:)

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

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

def list(agency_id, params = {})

Other tags:
    See: OnebusawaySDK::Models::RouteIDsForAgencyListParams -

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

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

Overloads:
  • list(agency_id, request_options: {})
def list(agency_id, params = {})
  @client.request(
    method: :get,
    path: ["api/where/route-ids-for-agency/%1$s.json", agency_id],
    model: OnebusawaySDK::Models::RouteIDsForAgencyListResponse,
    options: params[:request_options]
  )
end