Class: WatsonLanguage::ModelDetails
- Inherits:
-
ActiveMethod::Base
- Object
- ActiveMethod::Extra
- ActiveMethod::Base
- WatsonLanguage::ModelDetails
- Defined in:
- lib/watson-language-translator/model_details.rb
Instance Attribute Summary
Attributes inherited from ActiveMethod::Base
#http_method, #json_result, #options, #password, #text, #username
Class Method Summary collapse
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
Class Method Details
.fetch(options = {}) ⇒ Object
5 6 7 |
# File 'lib/watson-language-translator/model_details.rb', line 5 def self.fetch(={}) self.new(nil, ) end |
Instance Method Details
#endpoint ⇒ Object
9 10 11 |
# File 'lib/watson-language-translator/model_details.rb', line 9 def endpoint "models/#{@options[:model_id]}" end |