Class: Couchbase::Collection::SubDocumentField Private

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|self| ... } ⇒ SubDocumentField

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 a new instance of SubDocumentField.

Yield Parameters:



318
319
320
# File 'lib/couchbase/collection_options.rb', line 318

def initialize
  yield self if block_given?
end

Instance Attribute Details

#errorCouchbaseError

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 error.

Returns:

  • (CouchbaseError)

    error



315
316
317
# File 'lib/couchbase/collection_options.rb', line 315

def error
  @error
end

#existsBoolean

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 true if the path exists in the document.

Returns:

  • (Boolean)

    true if the path exists in the document



303
304
305
# File 'lib/couchbase/collection_options.rb', line 303

def exists
  @exists
end

#indexInteger

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 index.

Returns:

  • (Integer)

    index



309
310
311
# File 'lib/couchbase/collection_options.rb', line 309

def index
  @index
end

#pathString

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 path.

Returns:

  • (String)

    path



312
313
314
# File 'lib/couchbase/collection_options.rb', line 312

def path
  @path
end

#valueString

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 value.

Returns:

  • (String)

    value



306
307
308
# File 'lib/couchbase/collection_options.rb', line 306

def value
  @value
end