Class: Couchbase::Management::ScopeSpec

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/management/collection_manager.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/management/collection_manager.rb
more...

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ScopeSpec.

Yield Parameters:

[View source]

300
301
302
# File 'lib/couchbase/management/collection_manager.rb', line 300

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


297
298
299
# File 'lib/couchbase/management/collection_manager.rb', line 297

def collections
  @collections
end

#nameString

Returns name of the scope.

Returns:

  • (String)

    name of the scope


294
295
296
# File 'lib/couchbase/management/collection_manager.rb', line 294

def name
  @name
end