Module: Consumer::Controls::MessageData
- Defined in:
- lib/consumer/controls/message_data.rb,
lib/consumer/controls/message_data/batch.rb
Defined Under Namespace
Modules: Batch
Constant Summary collapse
- Write =
MessageStore::Controls::MessageData::Write
Class Method Summary collapse
Class Method Details
.example(data: nil, position: nil, global_position: nil) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/consumer/controls/message_data.rb', line 4 def self.example(data: nil, position: nil, global_position: nil) global_position ||= position = MessageStore::Controls::MessageData::Read.example(data: data) .position = position unless position.nil? .global_position = global_position unless global_position.nil? end |