Class: OnebusawaySDK::Resources::AgenciesWithCoverage
- Inherits:
-
Object
- Object
- OnebusawaySDK::Resources::AgenciesWithCoverage
- Defined in:
- lib/onebusaway_sdk/resources/agencies_with_coverage.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ AgenciesWithCoverage
constructor
private
A new instance of AgenciesWithCoverage.
-
#list(request_options: {}) ⇒ OnebusawaySDK::Models::AgenciesWithCoverageListResponse
Returns a list of all transit agencies currently supported by OneBusAway along with the center of their coverage area.
Constructor Details
#initialize(client:) ⇒ AgenciesWithCoverage
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 AgenciesWithCoverage.
28 29 30 |
# File 'lib/onebusaway_sdk/resources/agencies_with_coverage.rb', line 28 def initialize(client:) @client = client end |
Instance Method Details
#list(request_options: {}) ⇒ OnebusawaySDK::Models::AgenciesWithCoverageListResponse
Returns a list of all transit agencies currently supported by OneBusAway along with the center of their coverage area.
16 17 18 19 20 21 22 23 |
# File 'lib/onebusaway_sdk/resources/agencies_with_coverage.rb', line 16 def list(params = {}) @client.request( method: :get, path: "api/where/agencies-with-coverage.json", model: OnebusawaySDK::Models::AgenciesWithCoverageListResponse, options: params[:request_options] ) end |