Class: RelatedWord::SemanticService

Inherits:
Object
  • Object
show all
Defined in:
lib/related_word/service/semantic_service.rb

Constant Summary collapse

"http://semantic-link.com/related.php?word="

Instance Method Summary collapse

Instance Method Details

#find(word) ⇒ Object



8
9
10
11
# File 'lib/related_word/service/semantic_service.rb', line 8

def find(word)
  resp = Net::HTTP.get_response(uri(word))
  JSON.parse(resp.body)
end