Module: CC::Kafka::OffsetStorage::Minidoc
- Defined in:
- lib/cc/kafka/offset_storage/minidoc.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/cc/kafka/offset_storage/minidoc.rb', line 5 def self.included(base) base.extend ClassMethods base.include ::Minidoc::Indexes base.attribute :topic, String base.attribute :partition, Integer base.attribute :current, Integer base.ensure_index [:partition, :topic], unique: true end |