Class: JetstreamBridge::Models::Event::Metadata

Inherits:
Struct
  • Object
show all
Defined in:
lib/jetstream_bridge/models/event.rb

Overview

Metadata associated with message delivery

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#consumerObject

Returns the value of attribute consumer



19
20
21
# File 'lib/jetstream_bridge/models/event.rb', line 19

def consumer
  @consumer
end

#deliveriesObject

Returns the value of attribute deliveries



19
20
21
# File 'lib/jetstream_bridge/models/event.rb', line 19

def deliveries
  @deliveries
end

#sequenceObject

Returns the value of attribute sequence



19
20
21
# File 'lib/jetstream_bridge/models/event.rb', line 19

def sequence
  @sequence
end

#streamObject

Returns the value of attribute stream



19
20
21
# File 'lib/jetstream_bridge/models/event.rb', line 19

def stream
  @stream
end

#subjectObject

Returns the value of attribute subject



19
20
21
# File 'lib/jetstream_bridge/models/event.rb', line 19

def subject
  @subject
end

#timestampObject

Returns the value of attribute timestamp



19
20
21
# File 'lib/jetstream_bridge/models/event.rb', line 19

def timestamp
  @timestamp
end

Instance Method Details

#to_hObject



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: timestamp
  }.compact
end