Module: ClinicalTrials::Client::Api
- Included in:
- ClinicalTrials::Client
- Defined in:
- lib/clinical_trials/client/api.rb
Instance Method Summary collapse
-
#search(term, options = {}) ⇒ Hash
Returns search results for given term.
Instance Method Details
#search(term, options = {}) ⇒ Hash
Returns search results for given term
13 14 15 16 |
# File 'lib/clinical_trials/client/api.rb', line 13 def search(term, ={}) term.sub(/\s/, "+") get("search?term=%22#{term}%22&displayxml=true", ) end |