Class: Couchbase::Management::DesignDocument

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DesignDocument.

Yield Parameters:



233
234
235
236
# File 'lib/couchbase/management/view_index_manager.rb', line 233

def initialize
  @views = {}
  yield self if block_given?
end

Instance Attribute Details

#nameString

Returns name.

Returns:

  • (String)

    name



224
225
226
# File 'lib/couchbase/management/view_index_manager.rb', line 224

def name
  @name
end

#namespace:production, :development

Returns:

  • (:production, :development)


230
231
232
# File 'lib/couchbase/management/view_index_manager.rb', line 230

def namespace
  @namespace
end

#viewsHash<String => View>

Returns:

  • (Hash<String => View>)


227
228
229
# File 'lib/couchbase/management/view_index_manager.rb', line 227

def views
  @views
end