Module: CloudKit
- Defined in:
- lib/cloudkit.rb,
lib/cloudkit/uri.rb,
lib/cloudkit/util.rb,
lib/cloudkit/store.rb,
lib/cloudkit/request.rb,
lib/cloudkit/service.rb,
lib/cloudkit/constants.rb,
lib/cloudkit/exceptions.rb,
lib/cloudkit/user_store.rb,
lib/cloudkit/oauth_store.rb,
lib/cloudkit/oauth_filter.rb,
lib/cloudkit/openid_store.rb,
lib/cloudkit/flash_session.rb,
lib/cloudkit/openid_filter.rb,
lib/cloudkit/store/resource.rb,
lib/cloudkit/store/response.rb,
lib/cloudkit/store/memory_table.rb
Defined Under Namespace
Modules: Constants, ResponseHelpers, Util Classes: FlashSession, HistoricalIntegrityViolation, InvalidURIFormat, MemoryQuery, MemoryTable, OAuthFilter, OAuthStore, OpenIDFilter, OpenIDStore, Request, Resource, Response, Service, Store, URI, UserStore
Constant Summary collapse
- VERSION =
'0.11.2'
Class Method Summary collapse
-
.setup_storage_adapter(adapter_instance = nil) ⇒ Object
Sets up the storage adapter.
-
.storage_adapter ⇒ Object
Return the shared storage adapter.
Class Method Details
.setup_storage_adapter(adapter_instance = nil) ⇒ Object
Sets up the storage adapter. Defaults to development-time CloudKit::MemoryTable. Also supports Rufus Tokyo Table instances. See the examples directory for Cabinet and Tyrant Table examples.
42 43 44 |
# File 'lib/cloudkit.rb', line 42 def self.setup_storage_adapter(adapter_instance=nil) @storage_adapter = adapter_instance || CloudKit::MemoryTable.new end |
.storage_adapter ⇒ Object
Return the shared storage adapter.
47 48 49 |
# File 'lib/cloudkit.rb', line 47 def self.storage_adapter @storage_adapter end |