Class: Mocodo::LanguageAnalysis::Truetext::Clusteranalytics

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

Constant Summary collapse

EndPoint =
"/truetext/v1/clusteranalytics"

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

#analysis(options = {}) ⇒ Object



48
49
50
# File 'lib/mocodo/goo_language_analysis.rb', line 48

def analysis(options={})
  post(build_url(EndPoint), build_params(options.merge(text: URI.escape(options[:text]))), {'Content-Type' =>'application/x-www-form-urlencoded'})
end