lib/zemanta/fetcher.rb in zemanta_client-0.0.2 vs lib/zemanta/fetcher.rb in zemanta_client-0.0.3

- old
+ new

@@ -1,6 +1,6 @@ -class Zemanta +module Zemanta class Fetcher def initialize(opts = {}) @opts = opts end @@ -19,10 +19,10 @@ def web Web.new(request_opts) end def parse(data) - JSON.parse(data) + Parser.new(data).parse end def request_opts @request_opts ||= Zemanta.config.request_opts.merge(@opts) end