Class: NATS::KeyValue::API::KeyValueConfig
- Inherits:
-
Struct
- Object
- Struct
- NATS::KeyValue::API::KeyValueConfig
- Defined in:
- lib/nats/io/kv.rb
Instance Attribute Summary collapse
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#description ⇒ Object
Returns the value of attribute description.
-
#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.
-
#replicas ⇒ Object
Returns the value of attribute replicas.
-
#storage ⇒ Object
Returns the value of attribute storage.
-
#ttl ⇒ Object
Returns the value of attribute ttl.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ KeyValueConfig
constructor
A new instance of KeyValueConfig.
Constructor Details
#initialize(opts = {}) ⇒ KeyValueConfig
Returns a new instance of KeyValueConfig.
105 106 107 108 109 |
# File 'lib/nats/io/kv.rb', line 105 def initialize(opts={}) rem = opts.keys - members opts.delete_if { |k| rem.include?(k) } super(opts) end |
Instance Attribute Details
#bucket ⇒ Object
Returns the value of attribute bucket
102 103 104 |
# File 'lib/nats/io/kv.rb', line 102 def bucket @bucket end |
#description ⇒ Object
Returns the value of attribute description
102 103 104 |
# File 'lib/nats/io/kv.rb', line 102 def description @description end |
#history ⇒ Object
Returns the value of attribute history
102 103 104 |
# File 'lib/nats/io/kv.rb', line 102 def history @history end |
#max_bytes ⇒ Object
Returns the value of attribute max_bytes
102 103 104 |
# File 'lib/nats/io/kv.rb', line 102 def max_bytes @max_bytes end |
#max_value_size ⇒ Object
Returns the value of attribute max_value_size
102 103 104 |
# File 'lib/nats/io/kv.rb', line 102 def max_value_size @max_value_size end |
#replicas ⇒ Object
Returns the value of attribute replicas
102 103 104 |
# File 'lib/nats/io/kv.rb', line 102 def replicas @replicas end |
#storage ⇒ Object
Returns the value of attribute storage
102 103 104 |
# File 'lib/nats/io/kv.rb', line 102 def storage @storage end |
#ttl ⇒ Object
Returns the value of attribute ttl
102 103 104 |
# File 'lib/nats/io/kv.rb', line 102 def ttl @ttl end |