Module: AggregateStreams::Controls::MessageData::Output
- Defined in:
- lib/aggregate_streams/controls/message_data.rb
Class Method Summary collapse
- .alternate(type: nil, data: nil) ⇒ Object
- .example(type: nil, data: nil, metadata: nil, **metadata_args) ⇒ Object
Class Method Details
.alternate(type: nil, data: nil) ⇒ Object
31 32 33 34 35 |
# File 'lib/aggregate_streams/controls/message_data.rb', line 31 def self.alternate(type: nil, data: nil) ||= Metadata::Output.alternate MessageData::Read.example(type: type, data: data, metadata: ) end |
.example(type: nil, data: nil, metadata: nil, **metadata_args) ⇒ Object
25 26 27 28 29 |
# File 'lib/aggregate_streams/controls/message_data.rb', line 25 def self.example(type: nil, data: nil, metadata: nil, **) ||= Metadata::Output.example(**) MessageData::Read.example(type: type, data: data, metadata: ) end |