Module: EventSource::Postgres::Controls::StreamName

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

Class Method Summary collapse

Class Method Details

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



13
14
15
16
17
18
# File 'lib/event_source/postgres/controls/stream_name.rb', line 13

def self.example(category: nil, id: nil, type: nil, types: nil, randomize_category: nil)
  category ||= Category.example(category: category, randomize_category: randomize_category)
  id ||= Identifier::UUID.random

  EventSource::Postgres::StreamName.stream_name(category, id, type: type, types: types)
end