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

Returns a new instance of Entry.



208
209
210
211
212
# File 'lib/nats/io/kv.rb', line 208

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

Instance Attribute Details

#bucketObject

Returns the value of attribute bucket

Returns:

  • (Object)

    the current value of bucket



207
208
209
# File 'lib/nats/io/kv.rb', line 207

def bucket
  @bucket
end

#createdObject

Returns the value of attribute created

Returns:

  • (Object)

    the current value of created



207
208
209
# File 'lib/nats/io/kv.rb', line 207

def created
  @created
end

#deltaObject

Returns the value of attribute delta

Returns:

  • (Object)

    the current value of delta



207
208
209
# File 'lib/nats/io/kv.rb', line 207

def delta
  @delta
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



207
208
209
# File 'lib/nats/io/kv.rb', line 207

def key
  @key
end

#operationObject

Returns the value of attribute operation

Returns:

  • (Object)

    the current value of operation



207
208
209
# File 'lib/nats/io/kv.rb', line 207

def operation
  @operation
end

#revisionObject

Returns the value of attribute revision

Returns:

  • (Object)

    the current value of revision



207
208
209
# File 'lib/nats/io/kv.rb', line 207

def revision
  @revision
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



207
208
209
# File 'lib/nats/io/kv.rb', line 207

def value
  @value
end