Class: NATS::KeyValue::Entry
- Inherits:
-
Struct
- Object
- Struct
- NATS::KeyValue::Entry
- Defined in:
- lib/nats/io/kv.rb
Instance Attribute Summary collapse
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#created ⇒ Object
Returns the value of attribute created.
-
#delta ⇒ Object
Returns the value of attribute delta.
-
#key ⇒ Object
Returns the value of attribute key.
-
#operation ⇒ Object
Returns the value of attribute operation.
-
#revision ⇒ Object
Returns the value of attribute revision.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(opts = {}) ⇒ Entry
Returns a new instance of Entry.
171 172 173 174 175 |
# File 'lib/nats/io/kv.rb', line 171 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
170 171 172 |
# File 'lib/nats/io/kv.rb', line 170 def bucket @bucket end |
#created ⇒ Object
Returns the value of attribute created
170 171 172 |
# File 'lib/nats/io/kv.rb', line 170 def created @created end |
#delta ⇒ Object
Returns the value of attribute delta
170 171 172 |
# File 'lib/nats/io/kv.rb', line 170 def delta @delta end |
#key ⇒ Object
Returns the value of attribute key
170 171 172 |
# File 'lib/nats/io/kv.rb', line 170 def key @key end |
#operation ⇒ Object
Returns the value of attribute operation
170 171 172 |
# File 'lib/nats/io/kv.rb', line 170 def operation @operation end |
#revision ⇒ Object
Returns the value of attribute revision
170 171 172 |
# File 'lib/nats/io/kv.rb', line 170 def revision @revision end |
#value ⇒ Object
Returns the value of attribute value
170 171 172 |
# File 'lib/nats/io/kv.rb', line 170 def value @value end |