Class: Zemanta::Fetcher::Web

Inherits:
Object
  • Object
show all
Defined in:
lib/zemanta/fetcher/web.rb

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Web

Returns a new instance of Web.



4
5
6
# File 'lib/zemanta/fetcher/web.rb', line 4

def initialize(opts = {})
  @opts = opts
end

Instance Method Details

#fetchObject



8
9
10
11
12
13
14
# File 'lib/zemanta/fetcher/web.rb', line 8

def fetch
  if http_fetch == zemanta_error_response
    raise_api_key_exception!
  else
    http_fetch
  end
end