Module: Consumer::Postgres::Controls::Position::Store::Message

Defined in:
lib/consumer/postgres/controls/position/store/message.rb

Class Method Summary collapse

Class Method Details

.example(position: nil) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/consumer/postgres/controls/position/store/message.rb', line 7

def self.example(position: nil)
  position ||= Position.example

  message = PositionStore::Messages::PositionUpdated.new
  message.position = position
  message
end