Sha256: 288191974a5bbad1932c6c3e3718300ade4d060fa3a208d7e03efe70861aec15
Contents?: true
Size: 540 Bytes
Versions: 1
Compression:
Stored size: 540 Bytes
Contents
class MapQuest module Services class Core attr_accessor :mapquest def initialize(mapquest) @mapquest = mapquest end def call_api(api, version, call, options) # Remove invalid options options.keys.select { |k| api.class::VALID_OPTIONS.include? k } api_method = { :location => api.class::API_LOCATION, :version => version, :call => call } mapquest.request api_method, options, api.class::Response end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mapquest-0.0.2 | lib/mapquest/services/core.rb |