Class: YandexDictionary::YandexDictionaryRequest
- Inherits:
-
Object
- Object
- YandexDictionary::YandexDictionaryRequest
- Defined in:
- lib/yandex_dictionary/yandex_dictionary_request.rb
Constant Summary collapse
- HOST_URL =
"https://dictionary.yandex.net/api/v1/dicservice.json/"
Class Method Summary collapse
Class Method Details
.make_request(path, options) ⇒ Object
5 6 7 8 9 |
# File 'lib/yandex_dictionary/yandex_dictionary_request.rb', line 5 def self.make_request(path, ) uri = URI("https://dictionary.yandex.net/api/v1/dicservice.json/" + path) uri.query = URI.encode_www_form() return Net::HTTP.get(uri) end |