Class: NATS::JetStream::JS::Sub

Inherits:
Object
  • Object
show all
Defined in:
lib/nats/io/jetstream/js/sub.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Sub

Returns a new instance of Sub.



23
24
25
26
27
28
# File 'lib/nats/io/jetstream/js/sub.rb', line 23

def initialize(opts = {})
  @js = opts[:js]
  @stream = opts[:stream]
  @consumer = opts[:consumer]
  @nms = opts[:nms]
end

Instance Attribute Details

#consumerObject

Returns the value of attribute consumer.



21
22
23
# File 'lib/nats/io/jetstream/js/sub.rb', line 21

def consumer
  @consumer
end

#jsObject

Returns the value of attribute js.



21
22
23
# File 'lib/nats/io/jetstream/js/sub.rb', line 21

def js
  @js
end

#nmsObject

Returns the value of attribute nms.



21
22
23
# File 'lib/nats/io/jetstream/js/sub.rb', line 21

def nms
  @nms
end

#streamObject

Returns the value of attribute stream.



21
22
23
# File 'lib/nats/io/jetstream/js/sub.rb', line 21

def stream
  @stream
end