Class: Couchbase::SearchResult
- Inherits:
-
Object
- Object
- Couchbase::SearchResult
- Defined in:
- lib/couchbase/search_options.rb,
/code/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.
1633 1634 1635 |
# File 'lib/couchbase/search_options.rb', line 1633 def initialize yield self if block_given? end |
Instance Attribute Details
#facets ⇒ Hash<String => SearchFacetResult>
1623 1624 1625 |
# File 'lib/couchbase/search_options.rb', line 1623 def facets @facets end |
#meta_data ⇒ SearchMetaData
1626 1627 1628 |
# File 'lib/couchbase/search_options.rb', line 1626 def @meta_data end |
#rows ⇒ Array<SearchRow>
1620 1621 1622 |
# File 'lib/couchbase/search_options.rb', line 1620 def rows @rows end |
Instance Method Details
#success? ⇒ Boolean
1628 1629 1630 |
# File 'lib/couchbase/search_options.rb', line 1628 def success? .errors.nil? || .errors.empty? end |