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

Inherits:
Object
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/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.



21
22
23
24
25
26
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/jetstream/js/sub.rb', line 21

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.



19
20
21
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/jetstream/js/sub.rb', line 19

def consumer
  @consumer
end

#jsObject (readonly)

Returns the value of attribute js.



19
20
21
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/jetstream/js/sub.rb', line 19

def js
  @js
end

#nmsObject (readonly)

Returns the value of attribute nms.



19
20
21
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/jetstream/js/sub.rb', line 19

def nms
  @nms
end

#streamObject (readonly)

Returns the value of attribute stream.



19
20
21
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/jetstream/js/sub.rb', line 19

def stream
  @stream
end