Sha256: aadd62cf90f45b9a0ea29ed627e109c0c032f1d0f46fc97eb3cd2f3038ed37d4
Contents?: true
Size: 364 Bytes
Versions: 1
Compression:
Stored size: 364 Bytes
Contents
require "citybikes_api/version" require "httparty" module CitybikesApi BASE_URL = "http://api.citybik.es/v2" # Networks Endpoint # # @example CityBikesApi.networks # def self.networks response = HTTParty.get("#{BASE_URL}/networks") end def self.network(network_id) response = HTTParty.get("#{BASE_URL}/networks/#{network_id}") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
citybikes_api-0.1.0 | lib/citybikes_api.rb |