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
- .local_properties ⇒ 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
50 51 52 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 50 def self. global_position end |
.causation_message_position ⇒ Object
46 47 48 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 46 def self. position end |
.causation_message_stream_name ⇒ Object
42 43 44 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 42 def self. stream_name end |
.correlation_stream_name ⇒ Object
54 55 56 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 54 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 28 |
# 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 .local_properties = local_properties .time = time .schema_version = schema_version end |
.global_position ⇒ Object
38 39 40 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 38 def self.global_position 111 end |
.local_properties ⇒ Object
68 69 70 71 72 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 68 def self.local_properties { :some_local_property => 'some local property value' } end |
.position ⇒ Object
34 35 36 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 34 def self.position 1 end |
.properties ⇒ Object
62 63 64 65 66 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 62 def self.properties { :some_property => 'some property value' } end |
.reply_stream_name ⇒ Object
58 59 60 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 58 def self.reply_stream_name 'someReplyStream' end |
.schema_version ⇒ Object
84 85 86 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 84 def self.schema_version '1' end |
.stream_name ⇒ Object
30 31 32 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 30 def self.stream_name "example:command-#{Entity.id}" end |
.time ⇒ Object
80 81 82 |
# File 'lib/messaging/fixtures/controls/metadata.rb', line 80 def self.time ::Time.utc(2000, 1, 1, 0, 0, 0, 11) end |