Class: WatsonLanguage::Identify

Inherits:
ActiveMethod::Base show all
Defined in:
lib/watson-language-translator/identify.rb

Instance Attribute Summary

Attributes inherited from ActiveMethod::Base

#http_method, #json_result, #options, #password, #text, #username

Instance Method Summary collapse

Methods inherited from ActiveMethod::Base

#fetch_http_method, #initialize, #params_addressable, #request

Methods included from Generators::LanguageRequest

#base_url_request, #json_parser, #rest_client_api

Methods inherited from ActiveMethod::Extra

add_response_field, #result

Constructor Details

This class inherits a constructor from WatsonLanguage::ActiveMethod::Base

Instance Method Details

#endpointObject



5
6
7
8
# File 'lib/watson-language-translator/identify.rb', line 5

def endpoint
  url = "identify"
  url << "?text=#{@text}"
end