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.



250
251
252
253
254
# File 'lib/nats/io/kv.rb', line 250

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



237
238
239
# File 'lib/nats/io/kv.rb', line 237

def bucket
  @bucket
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



237
238
239
# File 'lib/nats/io/kv.rb', line 237

def description
  @description
end

#directObject

Returns the value of attribute direct

Returns:

  • (Object)

    the current value of direct



237
238
239
# File 'lib/nats/io/kv.rb', line 237

def direct
  @direct
end

#historyObject

Returns the value of attribute history

Returns:

  • (Object)

    the current value of history



237
238
239
# File 'lib/nats/io/kv.rb', line 237

def history
  @history
end

#max_bytesObject

Returns the value of attribute max_bytes

Returns:

  • (Object)

    the current value of max_bytes



237
238
239
# File 'lib/nats/io/kv.rb', line 237

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



237
238
239
# File 'lib/nats/io/kv.rb', line 237

def max_value_size
  @max_value_size
end

#placementObject

Returns the value of attribute placement

Returns:

  • (Object)

    the current value of placement



237
238
239
# File 'lib/nats/io/kv.rb', line 237

def placement
  @placement
end

#replicasObject

Returns the value of attribute replicas

Returns:

  • (Object)

    the current value of replicas



237
238
239
# File 'lib/nats/io/kv.rb', line 237

def replicas
  @replicas
end

#republishObject

Returns the value of attribute republish

Returns:

  • (Object)

    the current value of republish



237
238
239
# File 'lib/nats/io/kv.rb', line 237

def republish
  @republish
end

#storageObject

Returns the value of attribute storage

Returns:

  • (Object)

    the current value of storage



237
238
239
# File 'lib/nats/io/kv.rb', line 237

def storage
  @storage
end

#ttlObject

Returns the value of attribute ttl

Returns:

  • (Object)

    the current value of ttl



237
238
239
# File 'lib/nats/io/kv.rb', line 237

def ttl
  @ttl
end