Class: WatsonLanguage::Identify
- Inherits:
-
ActiveMethod::Base
- Object
- ActiveMethod::Extra
- ActiveMethod::Base
- WatsonLanguage::Identify
- 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
Constructor Details
This class inherits a constructor from WatsonLanguage::ActiveMethod::Base
Instance Method Details
#endpoint ⇒ Object
5 6 7 8 |
# File 'lib/watson-language-translator/identify.rb', line 5 def endpoint url = "identify" url << "?text=#{@text}" end |