Class: Couchbase::Cluster::SearchFacetResult::DateRangeFacetResult

Inherits:
Couchbase::Cluster::SearchFacetResult show all
Defined in:
lib/couchbase/search_options.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/search_options.rb
more...

Defined Under Namespace

Classes: DateRangeFacet

Instance Attribute Summary collapse

Attributes inherited from Couchbase::Cluster::SearchFacetResult

#field, #missing, #name, #other, #total

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DateRangeFacetResult.

Yield Parameters:

[View source]

1340
1341
1342
1343
# File 'lib/couchbase/search_options.rb', line 1340

def initialize
  super
  yield self if block_given?
end

Instance Attribute Details

#date_rangesArray<DateRangeFacet>

Returns:


1333
1334
1335
# File 'lib/couchbase/search_options.rb', line 1333

def date_ranges
  @date_ranges
end

Instance Method Details

#typeObject

[View source]

1335
1336
1337
# File 'lib/couchbase/search_options.rb', line 1335

def type
  :date_range_facet
end