Class: ROM::Kafka::Relation
- Inherits:
-
Relation
- Object
- Relation
- ROM::Kafka::Relation
- Defined in:
- lib/rom/kafka/relation.rb
Overview
The Kafka-specific implementation of ROM::Relation
Class Method Summary collapse
-
.topic(name) ⇒ undefined
Kafka-specific alias for the ROM `.dataset` helper method.
Instance Method Summary collapse
-
#from(value) ⇒ ROM::Kafka::Relation
Returns new relation with updated `:partition` attribute.
-
#limit(value) ⇒ ROM::Kafka::Relation
Returns new relation with updated `:limit` attribute.
-
#offset(value) ⇒ ROM::Kafka::Relation
Returns new relation with updated `:offset` attribute.
Class Method Details
.topic(name) ⇒ undefined
Kafka-specific alias for the ROM `.dataset` helper method.
30 31 32 |
# File 'lib/rom/kafka/relation.rb', line 30 def self.topic(name) dataset(name) end |
Instance Method Details
#from(value) ⇒ ROM::Kafka::Relation
Returns new relation with updated `:partition` attribute
40 41 42 |
# File 'lib/rom/kafka/relation.rb', line 40 def from(value) using(partition: value) end |
#limit(value) ⇒ ROM::Kafka::Relation
Returns new relation with updated `:limit` attribute
60 61 62 |
# File 'lib/rom/kafka/relation.rb', line 60 def limit(value) using(limit: value) end |
#offset(value) ⇒ ROM::Kafka::Relation
Returns new relation with updated `:offset` attribute
50 51 52 |
# File 'lib/rom/kafka/relation.rb', line 50 def offset(value) using(offset: value) end |