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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Sub

Returns a new instance of Sub.



882
883
884
885
886
887
# File 'lib/nats/io/js.rb', line 882

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

Instance Attribute Details

#consumerObject (readonly)

Returns the value of attribute consumer.



880
881
882
# File 'lib/nats/io/js.rb', line 880

def consumer
  @consumer
end

#jsObject (readonly)

Returns the value of attribute js.



880
881
882
# File 'lib/nats/io/js.rb', line 880

def js
  @js
end

#nmsObject (readonly)

Returns the value of attribute nms.



880
881
882
# File 'lib/nats/io/js.rb', line 880

def nms
  @nms
end

#streamObject (readonly)

Returns the value of attribute stream.



880
881
882
# File 'lib/nats/io/js.rb', line 880

def stream
  @stream
end