Module: RelatedWord
- Defined in:
- lib/related_word.rb,
lib/related_word/version.rb
Constant Summary collapse
- LINK =
"http://semantic-link.com/related.php?word="- VERSION =
"0.1.4"
Class Method Summary collapse
Class Method Details
.find(word) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/related_word.rb', line 9 def self.find(word) link = "#{LINK}#{word}" uri = URI.parse(link) response = Net::HTTP.get_response(uri) JSON.parse(response.body) end |