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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ KeyValueConfig

Returns a new instance of KeyValueConfig.



35
36
37
38
39
# File 'lib/nats/io/kv/api.rb', line 35

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

Returns:

  • (Object)

    the current value of bucket



20
21
22
# File 'lib/nats/io/kv/api.rb', line 20

def bucket
  @bucket
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



20
21
22
# File 'lib/nats/io/kv/api.rb', line 20

def description
  @description
end

#directObject

Returns the value of attribute direct

Returns:

  • (Object)

    the current value of direct



20
21
22
# File 'lib/nats/io/kv/api.rb', line 20

def direct
  @direct
end

#historyObject

Returns the value of attribute history

Returns:

  • (Object)

    the current value of history



20
21
22
# File 'lib/nats/io/kv/api.rb', line 20

def history
  @history
end

#max_bytesObject

Returns the value of attribute max_bytes

Returns:

  • (Object)

    the current value of max_bytes



20
21
22
# File 'lib/nats/io/kv/api.rb', line 20

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



20
21
22
# File 'lib/nats/io/kv/api.rb', line 20

def max_value_size
  @max_value_size
end

#placementObject

Returns the value of attribute placement

Returns:

  • (Object)

    the current value of placement



20
21
22
# File 'lib/nats/io/kv/api.rb', line 20

def placement
  @placement
end

#replicasObject

Returns the value of attribute replicas

Returns:

  • (Object)

    the current value of replicas



20
21
22
# File 'lib/nats/io/kv/api.rb', line 20

def replicas
  @replicas
end

#republishObject

Returns the value of attribute republish

Returns:

  • (Object)

    the current value of republish



20
21
22
# File 'lib/nats/io/kv/api.rb', line 20

def republish
  @republish
end

#storageObject

Returns the value of attribute storage

Returns:

  • (Object)

    the current value of storage



20
21
22
# File 'lib/nats/io/kv/api.rb', line 20

def storage
  @storage
end

#ttlObject

Returns the value of attribute ttl

Returns:

  • (Object)

    the current value of ttl



20
21
22
# File 'lib/nats/io/kv/api.rb', line 20

def ttl
  @ttl
end

#validate_keysObject

Returns the value of attribute validate_keys

Returns:

  • (Object)

    the current value of validate_keys



20
21
22
# File 'lib/nats/io/kv/api.rb', line 20

def validate_keys
  @validate_keys
end