Class: RedisCounters::Partition

Inherits:
Bucket
  • Object
show all
Defined in:
lib/redis_counters/partition.rb

Instance Attribute Summary

Attributes inherited from Bucket

#bucket_params, #counter

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Bucket

#initialize, #params

Constructor Details

This class inherits a constructor from RedisCounters::Bucket

Class Method Details

.default_optionsObject



8
9
10
# File 'lib/redis_counters/partition.rb', line 8

def self.default_options
  {:only_leaf => false}
end

Instance Method Details

#bucket_keysObject



12
13
14
# File 'lib/redis_counters/partition.rb', line 12

def bucket_keys
  counter.send(:partition_keys)
end