Class: NATS::JetStream::JS::Sub
- 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
-
#consumer ⇒ Object
readonly
Returns the value of attribute consumer.
-
#js ⇒ Object
readonly
Returns the value of attribute js.
-
#nms ⇒ Object
readonly
Returns the value of attribute nms.
-
#stream ⇒ Object
readonly
Returns the value of attribute stream.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Sub
constructor
A new instance of Sub.
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
#consumer ⇒ Object (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 |
#js ⇒ Object (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 |
#nms ⇒ Object (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 |
#stream ⇒ Object (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 |