class OnebusawaySDK::Resources::RouteIDsForAgency
def initialize(client:)
-
client
(OnebusawaySDK::Client
) --
Other tags:
- Api: - private
def initialize(client:) @client = client end
def list(agency_id, params = {})
- 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