Class: OnebusawaySDK::Resources::StopsForAgency
- Inherits:
-
Object
- Object
- OnebusawaySDK::Resources::StopsForAgency
- Defined in:
- lib/onebusaway_sdk/resources/stops_for_agency.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ StopsForAgency
constructor
private
A new instance of StopsForAgency.
-
#list(agency_id, request_options: {}) ⇒ OnebusawaySDK::Models::StopsForAgencyListResponse
Get stops for a specific agency.
Constructor Details
#initialize(client:) ⇒ StopsForAgency
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of StopsForAgency.
29 30 31 |
# File 'lib/onebusaway_sdk/resources/stops_for_agency.rb', line 29 def initialize(client:) @client = client end |
Instance Method Details
#list(agency_id, request_options: {}) ⇒ OnebusawaySDK::Models::StopsForAgencyListResponse
Get stops for a specific agency
17 18 19 20 21 22 23 24 |
# File 'lib/onebusaway_sdk/resources/stops_for_agency.rb', line 17 def list(agency_id, params = {}) @client.request( method: :get, path: ["api/where/stops-for-agency/%1$s.json", agency_id], model: OnebusawaySDK::Models::StopsForAgencyListResponse, options: params[:request_options] ) end |