Class: JetstreamBridge::Models::Event::Metadata
- Inherits:
-
Struct
- Object
- Struct
- JetstreamBridge::Models::Event::Metadata
- Defined in:
- lib/jetstream_bridge/models/event.rb
Overview
Metadata associated with message delivery
Instance Attribute Summary collapse
-
#consumer ⇒ Object
Returns the value of attribute consumer.
-
#deliveries ⇒ Object
Returns the value of attribute deliveries.
-
#sequence ⇒ Object
Returns the value of attribute sequence.
-
#stream ⇒ Object
Returns the value of attribute stream.
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
Instance Attribute Details
#consumer ⇒ Object
Returns the value of attribute consumer
19 20 21 |
# File 'lib/jetstream_bridge/models/event.rb', line 19 def consumer @consumer end |
#deliveries ⇒ Object
Returns the value of attribute deliveries
19 20 21 |
# File 'lib/jetstream_bridge/models/event.rb', line 19 def deliveries @deliveries end |
#sequence ⇒ Object
Returns the value of attribute sequence
19 20 21 |
# File 'lib/jetstream_bridge/models/event.rb', line 19 def sequence @sequence end |
#stream ⇒ Object
Returns the value of attribute stream
19 20 21 |
# File 'lib/jetstream_bridge/models/event.rb', line 19 def stream @stream end |
#subject ⇒ Object
Returns the value of attribute subject
19 20 21 |
# File 'lib/jetstream_bridge/models/event.rb', line 19 def subject @subject end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
19 20 21 |
# File 'lib/jetstream_bridge/models/event.rb', line 19 def end |
Instance Method Details
#to_h ⇒ Object
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/jetstream_bridge/models/event.rb', line 28 def to_h { subject: subject, deliveries: deliveries, stream: stream, sequence: sequence, consumer: consumer, timestamp: }.compact end |