Class: DictionaryAPI::DictionaryAPI::Client

Inherits:
Object
  • Object
show all
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, options = {})
  response = HTTPClient.post(BASE_URL + path, options)  
  self.check_errors(response)
end