Class: Couchbase::Collection::ExistsResult
- Inherits:
-
Object
- Object
- Couchbase::Collection::ExistsResult
- Defined in:
- lib/couchbase/collection_options.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/collection_options.rb more...
Instance Attribute Summary collapse
-
#cas ⇒ Integer
Holds the CAS value of the fetched document.
Instance Method Summary collapse
- #exists? ⇒ Boolean
-
#initialize {|| ... } ⇒ ExistsResult
constructor
A new instance of ExistsResult.
Constructor Details
#initialize {|| ... } ⇒ ExistsResult
Returns a new instance of ExistsResult.
188 189 190 191 |
# File 'lib/couchbase/collection_options.rb', line 188 def initialize @durability_level = :none yield self if block_given? end |
Instance Attribute Details
#cas ⇒ Integer
Returns holds the CAS value of the fetched document.
177 178 179 |
# File 'lib/couchbase/collection_options.rb', line 177 def cas @cas end |
Instance Method Details
#exists? ⇒ Boolean
183 184 185 |
# File 'lib/couchbase/collection_options.rb', line 183 def exists? status == :found || status == :persisted end |