Class: Couchbase::Management::ScopeSpec

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/management/collection_manager.rb,
/home/runner/work/couchbase-ruby-client/couchbase-ruby-client/lib/couchbase/management/collection_manager.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ScopeSpec.

Yield Parameters:



491
492
493
# File 'lib/couchbase/management/collection_manager.rb', line 491

def initialize
  yield self if block_given?
end

Instance Attribute Details

#collectionsArray<CollectionSpec>

Returns list of collections associated with the scope.

Returns:

  • (Array<CollectionSpec>)

    list of collections associated with the scope



488
489
490
# File 'lib/couchbase/management/collection_manager.rb', line 488

def collections
  @collections
end

#nameString

Returns name of the scope.

Returns:

  • (String)

    name of the scope



485
486
487
# File 'lib/couchbase/management/collection_manager.rb', line 485

def name
  @name
end