class OnebusawaySDK::Resources::RoutesForAgency
def initialize(client:)
-
client
(OnebusawaySDK::Client
) --
Other tags:
- Api: - private
def initialize(client:) @client = client end
def list(agency_id, params = {})
- See: OnebusawaySDK::Models::RoutesForAgencyListParams -
Returns:
-
(OnebusawaySDK::Models::RoutesForAgencyListResponse)
-
Parameters:
-
request_options
(OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}, nil
) -- -
agency_id
(String
) -- The id of the agency
Overloads:
-
list(agency_id, request_options: {})
def list(agency_id, params = {}) @client.request( method: :get, path: ["api/where/routes-for-agency/%1$s.json", agency_id], model: OnebusawaySDK::Models::RoutesForAgencyListResponse, options: params[:request_options] ) end