def design_docs
      req = __http_query(:management, :get, "/pools/default/buckets/#{bucket}/ddocs", nil, nil, nil, nil, nil)
      docmap = {}
      res = MultiJson.load(req[:chunks].join)
      res["rows"].each do |obj|
        obj['doc']['value'] = obj['doc'].delete('json') if obj['doc']
        doc = DesignDoc.new(self, obj)
        next if environment == :production && doc.id =~ /dev_/
        docmap[doc.id] = doc
      end
      docmap
    end
def design_docs
      req = __http_query(:management, :get, "/pools/default/buckets/#{bucket}/ddocs", nil, nil, nil, nil, nil)
      docmap = {}
      res = MultiJson.load(req[:chunks].join)
      res["rows"].each do |obj|
        obj['doc']['value'] = obj['doc'].delete('json') if obj['doc']
        doc = DesignDoc.new(self, obj)
        next if environment == :production && doc.id =~ /dev_/
        docmap[doc.id] = doc
      end
      docmap
    end
Fetch design docs stored in current bucket

 @since 1.2.0

 @return [Hash]