Class: NATS::KeyValue::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/nats/io/kv.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Entry



204
205
206
207
208
# File 'lib/nats/io/kv.rb', line 204

def initialize(opts = {})
  rem = opts.keys - members
  opts.delete_if { |k| rem.include?(k) }
  super
end

Instance Attribute Details

#bucketObject

Returns the value of attribute bucket



203
204
205
# File 'lib/nats/io/kv.rb', line 203

def bucket
  @bucket
end

#createdObject

Returns the value of attribute created



203
204
205
# File 'lib/nats/io/kv.rb', line 203

def created
  @created
end

#deltaObject

Returns the value of attribute delta



203
204
205
# File 'lib/nats/io/kv.rb', line 203

def delta
  @delta
end

#keyObject

Returns the value of attribute key



203
204
205
# File 'lib/nats/io/kv.rb', line 203

def key
  @key
end

#operationObject

Returns the value of attribute operation



203
204
205
# File 'lib/nats/io/kv.rb', line 203

def operation
  @operation
end

#revisionObject

Returns the value of attribute revision



203
204
205
# File 'lib/nats/io/kv.rb', line 203

def revision
  @revision
end

#valueObject

Returns the value of attribute value



203
204
205
# File 'lib/nats/io/kv.rb', line 203

def value
  @value
end