Class: Mocodo::LanguageAnalysis::Similarity

Inherits:
Base
  • Object
show all
Defined in:
lib/mocodo/goo_language_analysis.rb

Constant Summary collapse

EndPoint =
"/gooLanguageAnalysis/v1/similarity"

Constants inherited from Base

Base::BaseURL

Instance Attribute Summary

Attributes inherited from Base

#api_key, #response

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Mocodo::Base

Instance Method Details

#calculate(options = {}) ⇒ Object



19
20
21
# File 'lib/mocodo/goo_language_analysis.rb', line 19

def calculate(options={})
  post(build_url(EndPoint), options.to_json, {'Content-Type' =>'application/json'})
end