Module: AggregateStreams::Controls::MessageData::Metadata::Output
- Defined in:
- lib/aggregate_streams/controls/message_data/metadata.rb
Class Method Summary collapse
Class Method Details
.alternate ⇒ Object
168 169 170 171 172 173 174 |
# File 'lib/aggregate_streams/controls/message_data/metadata.rb', line 168 def self.alternate Metadata.example( causation_message_stream_name: StreamName::Input::Alternate.example, causation_message_position: Position::Previous.alternate, causation_message_global_position: Position::Global::Previous.alternate ) end |
.example(causation_message_category: nil) ⇒ Object
158 159 160 161 162 163 164 165 166 |
# File 'lib/aggregate_streams/controls/message_data/metadata.rb', line 158 def self.example(causation_message_category: nil) ||= StreamName::Input::Category.example Metadata.example( causation_message_stream_name: StreamName::Input.example(category: ), causation_message_position: Position::Previous.example, causation_message_global_position: Position::Global::Previous.example ) end |