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
23
24
# File 'lib/morpher_inflect.rb', line 18

def get(text)
  options = {}
  options[:query] = { :s => text }
  inflections = self.class.get("/GetForms", options)
  
  return inflections["ArrayOfString"]["string"]
end