Sha256: 6d384d2b11b70d87558ce5f498affb56b15aebc7ea467f578b7a4b0bd04b9603
Contents?: true
Size: 329 Bytes
Versions: 1
Compression:
Stored size: 329 Bytes
Contents
class MapQuest class Request < RestClient::Resource # The base url of the mapquest api API_ROOT = 'http://www.mapquestapi.com/%s/v%s/%s' def initialize(method) super API_ROOT % [method[:location], method[:version], method[:call]] end def query(params) get :params => params end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mapquest-0.0.2 | lib/mapquest/request.rb |