Sha256: b4fc4ab8740dcb661a8e0e033f5bf2ed5a93ea300b76c7fec42639a5d01b8ddd
Contents?: true
Size: 841 Bytes
Versions: 4
Compression:
Stored size: 841 Bytes
Contents
module WhosGotDirt module Requests module Entity # Requests for entities from the OpenDuka API. # # @example Supply an API key. # "open_duka_api_key": "..." class OpenDuka < Request @base_url = 'http://www.openduka.org/index.php/api/search' # Returns the URL to request. # # @return [String] the URL to request def to_s "#{base_url}?#{to_query(convert)}" end # Converts the MQL parameters to API-specific parameters. # # @return [Hash] API-specific parameters # @see http://www.openduka.org/index.php/api/documentation def convert match('term', 'name') # API-specific parameters. equal('key', 'open_duka_api_key') output end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems