Module: MessageStore::Postgres::Controls::StreamName

Defined in:
lib/message_store/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



5
6
7
8
9
10
# File 'lib/message_store/postgres/controls/stream_name.rb', line 5

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

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