Class: NATS::KeyValue::API::KeyValueConfig
- Inherits:
-
Struct
- Object
- Struct
- NATS::KeyValue::API::KeyValueConfig
- Defined in:
- lib/nats/io/kv/api.rb
Instance Attribute Summary collapse
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#description ⇒ Object
Returns the value of attribute description.
-
#direct ⇒ Object
Returns the value of attribute direct.
-
#history ⇒ Object
Returns the value of attribute history.
-
#max_bytes ⇒ Object
Returns the value of attribute max_bytes.
-
#max_value_size ⇒ Object
Returns the value of attribute max_value_size.
-
#placement ⇒ Object
Returns the value of attribute placement.
-
#replicas ⇒ Object
Returns the value of attribute replicas.
-
#republish ⇒ Object
Returns the value of attribute republish.
-
#storage ⇒ Object
Returns the value of attribute storage.
-
#ttl ⇒ Object
Returns the value of attribute ttl.
-
#validate_keys ⇒ Object
Returns the value of attribute validate_keys.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ KeyValueConfig
constructor
A new instance of KeyValueConfig.
Constructor Details
#initialize(opts = {}) ⇒ KeyValueConfig
Returns a new instance of KeyValueConfig.
35 36 37 38 39 |
# File 'lib/nats/io/kv/api.rb', line 35 def initialize(opts = {}) rem = opts.keys - members opts.delete_if { |k| rem.include?(k) } super end |
Instance Attribute Details
#bucket ⇒ Object
Returns the value of attribute bucket
20 21 22 |
# File 'lib/nats/io/kv/api.rb', line 20 def bucket @bucket end |
#description ⇒ Object
Returns the value of attribute description
20 21 22 |
# File 'lib/nats/io/kv/api.rb', line 20 def description @description end |
#direct ⇒ Object
Returns the value of attribute direct
20 21 22 |
# File 'lib/nats/io/kv/api.rb', line 20 def direct @direct end |
#history ⇒ Object
Returns the value of attribute history
20 21 22 |
# File 'lib/nats/io/kv/api.rb', line 20 def history @history end |
#max_bytes ⇒ Object
Returns the value of attribute max_bytes
20 21 22 |
# File 'lib/nats/io/kv/api.rb', line 20 def max_bytes @max_bytes end |
#max_value_size ⇒ Object
Returns the value of attribute max_value_size
20 21 22 |
# File 'lib/nats/io/kv/api.rb', line 20 def max_value_size @max_value_size end |
#placement ⇒ Object
Returns the value of attribute placement
20 21 22 |
# File 'lib/nats/io/kv/api.rb', line 20 def placement @placement end |
#replicas ⇒ Object
Returns the value of attribute replicas
20 21 22 |
# File 'lib/nats/io/kv/api.rb', line 20 def replicas @replicas end |
#republish ⇒ Object
Returns the value of attribute republish
20 21 22 |
# File 'lib/nats/io/kv/api.rb', line 20 def republish @republish end |
#storage ⇒ Object
Returns the value of attribute storage
20 21 22 |
# File 'lib/nats/io/kv/api.rb', line 20 def storage @storage end |
#ttl ⇒ Object
Returns the value of attribute ttl
20 21 22 |
# File 'lib/nats/io/kv/api.rb', line 20 def ttl @ttl end |
#validate_keys ⇒ Object
Returns the value of attribute validate_keys
20 21 22 |
# File 'lib/nats/io/kv/api.rb', line 20 def validate_keys @validate_keys end |