Module: EventSource::Controls::Stream
- Defined in:
- lib/event_source/controls/stream.rb
Defined Under Namespace
Modules: Category
Class Method Summary collapse
Class Method Details
.example(stream_name: nil, category: nil, id: nil, randomize_category: nil) ⇒ Object
4 5 6 7 |
# File 'lib/event_source/controls/stream.rb', line 4 def self.example(stream_name: nil, category: nil, id: nil, randomize_category: nil) stream_name ||= StreamName.example category: category, id: id, randomize_category: randomize_category EventSource::Stream.new stream_name end |