Class: Zemanta::Fetcher::Web
- Inherits:
-
Object
- Object
- Zemanta::Fetcher::Web
- Defined in:
- lib/zemanta/fetcher/web.rb
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize(opts = {}) ⇒ Web
constructor
A new instance of Web.
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
#fetch ⇒ Object
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 |