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]

1488
1489
1490
# File 'lib/couchbase/search_options.rb', line 1488

def initialize
  yield self if block_given?
end

Instance Attribute Details

#facetsHash<String => SearchFacetResult>

Returns:


1478
1479
1480
# File 'lib/couchbase/search_options.rb', line 1478

def facets
  @facets
end

#meta_dataSearchMetaData

Returns:


1481
1482
1483
# File 'lib/couchbase/search_options.rb', line 1481

def 
  @meta_data
end

#rowsArray<SearchRow>

Returns:


1475
1476
1477
# File 'lib/couchbase/search_options.rb', line 1475

def rows
  @rows
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)
[View source]

1483
1484
1485
# File 'lib/couchbase/search_options.rb', line 1483

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