Class: HTTPClient
- Inherits:
-
Object
- Object
- HTTPClient
- Defined in:
- lib/y_speller/http_client.rb
Overview
open(‘speller.yandex.net/services/spellservice.json/checkText?text=синхрафазатрон+в+дубне’)
Instance Method Summary collapse
Instance Method Details
#get_query(url, parameters) ⇒ Object
6 7 8 9 10 |
# File 'lib/y_speller/http_client.rb', line 6 def get_query (url, parameters) uri = URI(url) uri.query = URI.encode_www_form(parameters) Net::HTTP.get_response(uri) end |