Module: CitybikesApi
- Defined in:
- lib/citybikes_api.rb,
lib/citybikes_api/version.rb
Overview
A collection of methods to facilitate citybikes api requests.
Constant Summary collapse
- BASE_URL =
The base url for all endpoint requests.
"http://api.citybik.es/v2"
- VERSION =
The major version of this gem should correspond to the citybikes api version.
"2.0.1"
Class Method Summary collapse
-
.network(network_id, options = {}) ⇒ Object
Network Endpoint.
-
.networks(options = {}) ⇒ Object
Networks Endpoint.
Class Method Details
.network(network_id, options = {}) ⇒ Object
Network Endpoint
30 31 32 |
# File 'lib/citybikes_api.rb', line 30 def self.network(network_id, = {}) HTTParty.get("#{BASE_URL}/networks/#{network_id}", :query => ) end |
.networks(options = {}) ⇒ Object
Networks Endpoint
17 18 19 |
# File 'lib/citybikes_api.rb', line 17 def self.networks( = {}) HTTParty.get("#{BASE_URL}/networks", :query => ) end |