Module: Consumer::Controls::Position::Global

Defined in:
lib/consumer/controls/position.rb

Class Method Summary collapse

Class Method Details

.example(offset: nil) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/consumer/controls/position.rb', line 11

def self.example(offset: nil)
  offset ||= 0

  position = MessageStore::Controls::MessageData::Read.global_position

  position + offset
end