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

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

Defined Under Namespace

Modules: Category

Class Method Summary collapse

Class Method Details

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



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

def self.example(id: nil, randomize_category: nil, types: nil)
  types ||= []

  types << 'position'

  StreamName.example(
    id: id,
    randomize_category: randomize_category,
    types: types
  )
end