class Zemanta class Fetcher class Web def initialize(opts = {}) @opts = opts end def fetch if http_fetch == zemanta_error_response raise_api_key_exception! else http_fetch end end private def http_fetch @response ||= Typhoeus.post(url, params: @opts).response_body end def zemanta_error_response '