Class: Couchbase::Cluster::SearchResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of SearchResult.

Yield Parameters:

[View source]

1566
1567
1568
# File 'lib/couchbase/search_options.rb', line 1566

def initialize
  yield self if block_given?
end

Instance Attribute Details

#facetsHash<String => SearchFacetResult>

Returns:


1556
1557
1558
# File 'lib/couchbase/search_options.rb', line 1556

def facets
  @facets
end

#meta_dataSearchMetaData

Returns:


1559
1560
1561
# File 'lib/couchbase/search_options.rb', line 1559

def 
  @meta_data
end

#rowsArray<SearchRow>

Returns:


1553
1554
1555
# File 'lib/couchbase/search_options.rb', line 1553

def rows
  @rows
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)
[View source]

1561
1562
1563
# File 'lib/couchbase/search_options.rb', line 1561

def success?
  .errors.nil? || .errors.empty?
end