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

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

Class Method Summary collapse

Class Method Details

.get(stream_name, global_position, position) ⇒ Object



29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/consumer/controls/get/incrementing.rb', line 29

def self.get(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