Class: Couchbase::SearchResult
- Inherits:
-
Object
- Object
- Couchbase::SearchResult
- Defined in:
- lib/couchbase/search_options.rb,
/home/runner/work/couchbase-ruby-client/couchbase-ruby-client/lib/couchbase/search_options.rb
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.
1727 1728 1729 |
# File 'lib/couchbase/search_options.rb', line 1727 def initialize yield self if block_given? end |
Instance Attribute Details
#facets ⇒ Hash<String => SearchFacetResult>
1717 1718 1719 |
# File 'lib/couchbase/search_options.rb', line 1717 def facets @facets end |
#meta_data ⇒ SearchMetaData
1720 1721 1722 |
# File 'lib/couchbase/search_options.rb', line 1720 def @meta_data end |
#rows ⇒ Array<SearchRow>
1714 1715 1716 |
# File 'lib/couchbase/search_options.rb', line 1714 def rows @rows end |
Instance Method Details
#success? ⇒ Boolean
1722 1723 1724 |
# File 'lib/couchbase/search_options.rb', line 1722 def success? .errors.nil? || .errors.empty? end |