Module: Consumer::Postgres::Controls::StreamName::Position

Defined in:
lib/consumer/postgres/controls/stream_name.rb

Class Method Summary collapse

Class Method Details

.example(id: nil, category: nil, types: nil) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/consumer/postgres/controls/stream_name.rb', line 8

def self.example(id: nil, category: nil, types: nil)
  category ||= Controls::Category.example(category: category)
  types ||= []

  types << 'position'

  Messaging::Controls::StreamName.example(
    id: id,
    category: category,
    types: types
  )
end