Class: Couchbase::Collection::ExistsResult

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/collection_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|| ... } ⇒ ExistsResult

Returns a new instance of ExistsResult.

Yield Parameters:



108
109
110
# File 'lib/couchbase/collection_options.rb', line 108

def initialize
  yield self if block_given?
end

Instance Attribute Details

#casInteger



98
99
100
# File 'lib/couchbase/collection_options.rb', line 98

def cas
  @cas
end

#datatypeInteger

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns datatype.



130
131
132
# File 'lib/couchbase/collection_options.rb', line 130

def datatype
  @datatype
end

#deletedBoolean



101
102
103
# File 'lib/couchbase/collection_options.rb', line 101

def deleted
  @deleted
end

#existsBoolean Also known as: exists?



104
105
106
# File 'lib/couchbase/collection_options.rb', line 104

def exists
  @exists
end

#expiry=(value) ⇒ Integer (writeonly)



113
114
115
# File 'lib/couchbase/collection_options.rb', line 113

def expiry=(value)
  @expiry = value
end

#flagsInteger

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns flags.



122
123
124
# File 'lib/couchbase/collection_options.rb', line 122

def flags
  @flags
end

#sequence_numberInteger

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns sequence_number.



126
127
128
# File 'lib/couchbase/collection_options.rb', line 126

def sequence_number
  @sequence_number
end

Instance Method Details

#expiry_timeTime



116
117
118
# File 'lib/couchbase/collection_options.rb', line 116

def expiry_time
  Time.at(@expiry) if @expiry
end