Module: Messaging::Fixtures::Controls::Metadata
- Defined in:
- lib/messaging/fixtures/controls/metadata.rb
Class Method Summary collapse
- .causation_message_global_position ⇒ Object
- .causation_message_position ⇒ Object
- .causation_message_stream_name ⇒ Object
- .correlation_stream_name ⇒ Object
- .example ⇒ Object
- .global_position ⇒ Object
- .position ⇒ Object
- .properties ⇒ Object
- .reply_stream_name ⇒ Object
- .schema_version ⇒ Object
- .stream_name ⇒ Object
- .time ⇒ Object
Class Method Details
.causation_message_global_position ⇒ Object
49 50 51 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 49 def self. Message::Metadata.global_position end |
.causation_message_position ⇒ Object
45 46 47 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 45 def self. Message::Metadata.position end |
.causation_message_stream_name ⇒ Object
41 42 43 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 41 def self. Message::Metadata.stream_name end |
.correlation_stream_name ⇒ Object
53 54 55 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 53 def self.correlation_stream_name 'someCorrelationStream' end |
.example ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 5 def self.example = Messaging::Message::Metadata.new .stream_name = stream_name .position = position .global_position = global_position . = . = . = .correlation_stream_name = correlation_stream_name .reply_stream_name = reply_stream_name .properties = properties .time = time .schema_version = schema_version end |
.global_position ⇒ Object
37 38 39 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 37 def self.global_position 111 end |
.position ⇒ Object
33 34 35 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 33 def self.position 1 end |
.properties ⇒ Object
61 62 63 64 65 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 61 def self.properties { some_property: 'some property value' } end |
.reply_stream_name ⇒ Object
57 58 59 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 57 def self.reply_stream_name 'someReplyStream' end |
.schema_version ⇒ Object
71 72 73 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 71 def self.schema_version '1' end |
.stream_name ⇒ Object
29 30 31 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 29 def self.stream_name "example:command-#{Entity.id}" end |
.time ⇒ Object
67 68 69 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 67 def self.time ::Time.utc(2000, 1, 1, 0, 0, 0, 11) end |