Class: ActivePinecone::Pinecone

Inherits:
Pinecone::Client
  • Object
show all
Defined in:
lib/active_pinecone/pinecone.rb

Instance Method Summary collapse

Constructor Details

#initializePinecone

Returns a new instance of Pinecone.



3
4
5
6
7
8
9
10
# File 'lib/active_pinecone/pinecone.rb', line 3

def initialize
  ::Pinecone.configure do |config|
    config.api_key = ActivePinecone.configuration.pinecone_api_key
    config.environment = ActivePinecone.configuration.pinecone_environment
  end

  super
end