class OnebusawaySDK::Resources::VehiclesForAgency
def initialize(client:)
-
client
(OnebusawaySDK::Client
) --
Other tags:
- Api: - private
def initialize(client:) @client = client end
def list(agency_id, params = {})
- See: OnebusawaySDK::Models::VehiclesForAgencyListParams -
Returns:
-
(OnebusawaySDK::Models::VehiclesForAgencyListResponse)
-
Parameters:
-
request_options
(OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}, nil
) -- -
time
(String
) -- Specific time for querying the status (timestamp format) -
agency_id
(String
) -- ID of the agency
Overloads:
-
list(agency_id, time: nil, request_options: {})
def list(agency_id, params = {}) parsed, options = OnebusawaySDK::VehiclesForAgencyListParams.dump_request(params) @client.request( method: :get, path: ["api/where/vehicles-for-agency/%1$s.json", agency_id], query: parsed, model: OnebusawaySDK::Models::VehiclesForAgencyListResponse, options: options ) end