Class: Couchbase::Cluster::SearchResult
- Inherits:
-
Object
- Object
- Couchbase::Cluster::SearchResult
- 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
-
#initialize {|self| ... } ⇒ SearchResult
constructor
A new instance of SearchResult.
- #success? ⇒ Boolean
Constructor Details
#initialize {|self| ... } ⇒ SearchResult
Returns a new instance of SearchResult.
1565 1566 1567 |
# File 'lib/couchbase/search_options.rb', line 1565 def initialize yield self if block_given? end |
Instance Attribute Details
#facets ⇒ Hash<String => SearchFacetResult>
1555 1556 1557 |
# File 'lib/couchbase/search_options.rb', line 1555 def facets @facets end |
#meta_data ⇒ SearchMetaData
1558 1559 1560 |
# File 'lib/couchbase/search_options.rb', line 1558 def @meta_data end |
#rows ⇒ Array<SearchRow>
1552 1553 1554 |
# File 'lib/couchbase/search_options.rb', line 1552 def rows @rows end |
Instance Method Details
#success? ⇒ Boolean
1560 1561 1562 |
# File 'lib/couchbase/search_options.rb', line 1560 def success? .errors.nil? || .errors.empty? end |