Class: Consumer::Controls::Get::Incrementing::MessageData

Inherits:
Object
  • Object
show all
Defined in:
lib/consumer/controls/get/incrementing.rb

Class Method Summary collapse

Class Method Details

.example(stream_name, global_position, position) ⇒ Object



51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/consumer/controls/get/incrementing.rb', line 51

def self.example(stream_name, global_position, position)
  data = {
    :position => position,
    :global_position => global_position
  }

  Controls::MessageData.example(
    stream_name: stream_name,
    data: data,
    global_position: global_position,
    position: position
  )
end