Class: NATS::KeyValue::API::KeyValueConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bucketObject

Returns the value of attribute bucket

Returns:

  • (Object)

    the current value of bucket



102
103
104
# File 'lib/nats/io/kv.rb', line 102

def bucket
  @bucket
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



102
103
104
# File 'lib/nats/io/kv.rb', line 102

def description
  @description
end

#historyObject

Returns the value of attribute history

Returns:

  • (Object)

    the current value of history



102
103
104
# File 'lib/nats/io/kv.rb', line 102

def history
  @history
end

#max_bytesObject

Returns the value of attribute max_bytes

Returns:

  • (Object)

    the current value of max_bytes



102
103
104
# File 'lib/nats/io/kv.rb', line 102

def max_bytes
  @max_bytes
end

#max_value_sizeObject

Returns the value of attribute max_value_size

Returns:

  • (Object)

    the current value of max_value_size



102
103
104
# File 'lib/nats/io/kv.rb', line 102

def max_value_size
  @max_value_size
end

#replicasObject

Returns the value of attribute replicas

Returns:

  • (Object)

    the current value of replicas



102
103
104
# File 'lib/nats/io/kv.rb', line 102

def replicas
  @replicas
end

#storageObject

Returns the value of attribute storage

Returns:

  • (Object)

    the current value of storage



102
103
104
# File 'lib/nats/io/kv.rb', line 102

def storage
  @storage
end

#ttlObject

Returns the value of attribute ttl

Returns:

  • (Object)

    the current value of ttl



102
103
104
# File 'lib/nats/io/kv.rb', line 102

def ttl
  @ttl
end