Class: Couchbase::Bucket::ViewMetaData

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ViewMetaData.

Yield Parameters:



47
48
49
# File 'lib/couchbase/view_options.rb', line 47

def initialize
  yield self if block_given?
end

Instance Attribute Details

#debug_info=(value) ⇒ Object (writeonly)

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.



40
41
42
# File 'lib/couchbase/view_options.rb', line 40

def debug_info=(value)
  @debug_info = value
end

#total_rowsInteger

Returns:

  • (Integer)


37
38
39
# File 'lib/couchbase/view_options.rb', line 37

def total_rows
  @total_rows
end

Instance Method Details

#debugObject



42
43
44
# File 'lib/couchbase/view_options.rb', line 42

def debug
  JSON.parse(@debug_info)
end