class GcDatastore::DatastoreFactory
Constants
- VERSION
Public Class Methods
get()
click to toggle source
# File lib/gc_datastore/datastore_factory.rb, line 6 def self.get @@INSTANCE = new unless @@INSTANCE @@INSTANCE end
Public Instance Methods
create(options)
click to toggle source
# File lib/gc_datastore/datastore_factory.rb, line 11 def create(options) return GcDatastore::Datastore.new(newRemoteRpc(options)) end
makeClient(options)
click to toggle source
# File lib/gc_datastore/datastore_factory.rb, line 21 def makeClient(options) client = GcDatastore::Client.new(options).authorize(options) return client end
newRemoteRpc(options)
click to toggle source
# File lib/gc_datastore/datastore_factory.rb, line 15 def newRemoteRpc(options) client = makeClient(options) datastore = client.discovered_api('datastore', VERSION) return GcDatastore::Datastore.new(GcDatastore::RemoteRpc.new(client, options)) end