Class: Couchbase::SearchResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of SearchResult.

Yield Parameters:



1633
1634
1635
# File 'lib/couchbase/search_options.rb', line 1633

def initialize
  yield self if block_given?
end

Instance Attribute Details

#facetsHash<String => SearchFacetResult>

Returns:



1623
1624
1625
# File 'lib/couchbase/search_options.rb', line 1623

def facets
  @facets
end

#meta_dataSearchMetaData

Returns:



1626
1627
1628
# File 'lib/couchbase/search_options.rb', line 1626

def 
  @meta_data
end

#rowsArray<SearchRow>

Returns:



1620
1621
1622
# File 'lib/couchbase/search_options.rb', line 1620

def rows
  @rows
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


1628
1629
1630
# File 'lib/couchbase/search_options.rb', line 1628

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