Class: DictionaryAPI::DictionaryAPI::Client
- Inherits:
-
Object
- Object
- DictionaryAPI::DictionaryAPI::Client
- Defined in:
- lib/dictionary_api/client.rb
Constant Summary collapse
- BASE_URL =
"https://dictionary.yandex.net/api/v1/dicservice.json/"
Instance Method Summary collapse
Instance Method Details
#execute(path, options = {}) ⇒ Object
9 10 11 12 |
# File 'lib/dictionary_api/client.rb', line 9 def execute(path, = {}) response = HTTPClient.post(BASE_URL + path, ) self.check_errors(response) end |