Class: Couchbase::Cluster::SearchRow
- Inherits:
-
Object
- Object
- Couchbase::Cluster::SearchRow
- Defined in:
- lib/couchbase/search_options.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/search_options.rb more...
Instance Attribute Summary collapse
- #explanation ⇒ Hash
- #fragments ⇒ Hash<String => Array<String>>
-
#id ⇒ String
Document identifier.
-
#index ⇒ String
Name of the index.
- #locations ⇒ SearchRowLocations
- #score ⇒ Float
-
#transcoder ⇒ JsonTranscoder
Transcoder to use for the fields.
Instance Method Summary collapse
- #fields ⇒ Object
-
#initialize {|self| ... } ⇒ SearchRow
constructor
A new instance of SearchRow.
Constructor Details
#initialize {|self| ... } ⇒ SearchRow
Returns a new instance of SearchRow.
1509 1510 1511 1512 |
# File 'lib/couchbase/search_options.rb', line 1509 def initialize @fields = nil yield self if block_given? end |
Instance Attribute Details
#explanation ⇒ Hash
1496 1497 1498 |
# File 'lib/couchbase/search_options.rb', line 1496 def explanation @explanation end |
#fragments ⇒ Hash<String => Array<String>>
1499 1500 1501 |
# File 'lib/couchbase/search_options.rb', line 1499 def fragments @fragments end |
#id ⇒ String
Returns document identifier.
1487 1488 1489 |
# File 'lib/couchbase/search_options.rb', line 1487 def id @id end |
#index ⇒ String
Returns name of the index.
1484 1485 1486 |
# File 'lib/couchbase/search_options.rb', line 1484 def index @index end |
#locations ⇒ SearchRowLocations
1493 1494 1495 |
# File 'lib/couchbase/search_options.rb', line 1493 def locations @locations end |
#score ⇒ Float
1490 1491 1492 |
# File 'lib/couchbase/search_options.rb', line 1490 def score @score end |
#transcoder ⇒ JsonTranscoder
Returns transcoder to use for the fields.
1502 1503 1504 |
# File 'lib/couchbase/search_options.rb', line 1502 def transcoder @transcoder end |
Instance Method Details
#fields ⇒ Object
[View source]
1504 1505 1506 |
# File 'lib/couchbase/search_options.rb', line 1504 def fields @transcoder.decode(@fields, :json) if @fields && @transcoder end |