Class: Ingenia::HtmlExtractor
- Inherits:
-
Object
- Object
- Ingenia::HtmlExtractor
- Includes:
- Api
- Defined in:
- lib/ingenia_api/html_extractor.rb
Defined Under Namespace
Classes: MissingUrl
Constant Summary collapse
- PATH =
'/html_extractor'
Constants included from Api
Class Method Summary collapse
-
.fetch(params = {}) ⇒ Object
Fetch the url html.
Methods included from Api
#api_key, #api_key=, #classify, #debug=, #endpoint=, #similar_to, #status, #summarize, #train, #trained_tags, #verify_response, #version=
Class Method Details
.fetch(params = {}) ⇒ Object
Fetch the url html
9 10 11 12 13 14 15 16 |
# File 'lib/ingenia_api/html_extractor.rb', line 9 def self.fetch( params = {} ) raise(MissingUrl) unless params.has_key?(:url) initialize_params params Ingenia::Api.verify_response do Remote.get( "#{PATH}/fetch", @params ) end end |