Module: EventSource::EventStore::HTTP::StreamName
- Defined in:
- lib/event_source/event_store/http/stream_name.rb
Class Method Summary collapse
Class Method Details
.canonize(stream_or_stream_name) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/event_source/event_store/http/stream_name.rb', line 5 def self.canonize(stream_or_stream_name) stream = EventSource::Stream.build stream_or_stream_name if stream.category? category_stream_name stream.name else stream.name end end |
.category_stream_name(category) ⇒ Object
15 16 17 |
# File 'lib/event_source/event_store/http/stream_name.rb', line 15 def self.category_stream_name(category) "$ce-#{category}" end |