module EventSource::Postgres::Controls::StreamName

Public Class Methods

example(category: nil, id: nil, type: nil, types: nil, randomize_category: nil) click to toggle source
# 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