Class: MorpherInflect::Inflection

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/morpher_inflect.rb

Overview

Класс для получения данных с веб-сервиса Морфера.

Instance Method Summary collapse

Instance Method Details

#get(text) ⇒ Object

Получить склонения для имени name



18
19
20
21
22
# File 'lib/morpher_inflect.rb', line 18

def get(text)
  options = {}
  options[:query] = { s: text, format: 'json' }
  self.class.get("/russian/declension", options)
end