Method: Pinecone::Index#create

Defined in:
lib/pinecone/index.rb

#create(body) ⇒ Object



25
26
27
28
# File 'lib/pinecone/index.rb', line 25

def create(body)
  payload = options.merge(body: body.to_json)
  self.class.post("/indexes", payload)
end