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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, count, start_time, end_time) ⇒ DateRangeFacet

Returns a new instance of DateRangeFacet.

[View source]

1358
1359
1360
1361
1362
1363
# File 'lib/couchbase/search_options.rb', line 1358

def initialize(name, count, start_time, end_time)
  @name = name
  @count = count
  @start_time = start_time
  @end_time = end_time
end

Instance Attribute Details

#countInteger (readonly)

Returns:

  • (Integer)

1350
1351
1352
# File 'lib/couchbase/search_options.rb', line 1350

def count
  @count
end

#end_timeString (readonly)

Returns:

  • (String)

1356
1357
1358
# File 'lib/couchbase/search_options.rb', line 1356

def end_time
  @end_time
end

#nameString (readonly)

Returns:

  • (String)

1347
1348
1349
# File 'lib/couchbase/search_options.rb', line 1347

def name
  @name
end

#start_timeString (readonly)

Returns:

  • (String)

1353
1354
1355
# File 'lib/couchbase/search_options.rb', line 1353

def start_time
  @start_time
end