Class: AlchemyLanguage::RawText
- Inherits:
-
ActiveModel::Base
- Object
- ActiveMethod::Extra
- ActiveModel::Base
- AlchemyLanguage::RawText
- Defined in:
- lib/alchemy_language/model/raw_text.rb
Instance Attribute Summary
Attributes inherited from ActiveModel::Base
#auth_token, #json_result, #options, #path, #prefix, #type
Instance Method Summary collapse
Methods inherited from ActiveModel::Base
#check_prefix, #initialize, #params_addressable, #request
Methods included from Generators::AlchemyRequest
#base_url, #json_parser, #rest_client_api
Methods inherited from ActiveMethod::Extra
Constructor Details
This class inherits a constructor from AlchemyLanguage::ActiveModel::Base
Instance Method Details
#endpoint ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/alchemy_language/model/raw_text.rb', line 5 def endpoint url = "#{@type}/#{@prefix}GetRawText" url << "?apikey=#{@auth_token}" url << "&#{@type}=#{@path}&outputMode=json" url << "&#{params_addressable}" unless params_addressable.empty? url end |