Class: CloudKit::UserStore
Overview
A thin layer on top of CloudKit::Store providing consistent URIs and automatic upgrades if required for future releases.
Constant Summary collapse
- @@store =
nil
Instance Method Summary collapse
-
#delete(uri, options = {}) ⇒ Object
:nodoc:.
-
#get(uri, options = {}) ⇒ Object
:nodoc:.
-
#initialize(uri = nil) ⇒ UserStore
constructor
A new instance of UserStore.
-
#post(uri, options = {}) ⇒ Object
:nodoc:.
-
#put(uri, options = {}) ⇒ Object
:nodoc:.
-
#resolve_uris(uris) ⇒ Object
:nodoc:.
-
#version ⇒ Object
Return the version for this UserStore.
Constructor Details
Instance Method Details
#delete(uri, options = {}) ⇒ Object
:nodoc:
26 27 28 |
# File 'lib/cloudkit/user_store.rb', line 26 def delete(uri, ={}) #:nodoc: @@store.delete(CloudKit::URI.new(uri), ) end |
#get(uri, options = {}) ⇒ Object
:nodoc:
14 15 16 |
# File 'lib/cloudkit/user_store.rb', line 14 def get(uri, ={}) #:nodoc: @@store.get(CloudKit::URI.new(uri), ) end |
#post(uri, options = {}) ⇒ Object
:nodoc:
18 19 20 |
# File 'lib/cloudkit/user_store.rb', line 18 def post(uri, ={}) #:nodoc: @@store.post(CloudKit::URI.new(uri), ) end |
#put(uri, options = {}) ⇒ Object
:nodoc:
22 23 24 |
# File 'lib/cloudkit/user_store.rb', line 22 def put(uri, ={}) #:nodoc: @@store.put(CloudKit::URI.new(uri), ) end |
#resolve_uris(uris) ⇒ Object
:nodoc:
30 31 32 |
# File 'lib/cloudkit/user_store.rb', line 30 def resolve_uris(uris) #:nodoc: @@store.resolve_uris(uris.map { |uri| CloudKit::URI.new(uri) }) end |
#version ⇒ Object
Return the version for this UserStore
35 |
# File 'lib/cloudkit/user_store.rb', line 35 def version; 1; end |