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

Inherits:
Struct show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/kv/api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Struct

#as_json

Constructor Details

#initialize(opts = {}) ⇒ KeyValueConfig

Returns a new instance of KeyValueConfig.



31
32
33
34
35
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/kv/api.rb', line 31

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



18
19
20
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/kv/api.rb', line 18

def bucket
  @bucket
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



18
19
20
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/kv/api.rb', line 18

def description
  @description
end

#directObject

Returns the value of attribute direct

Returns:

  • (Object)

    the current value of direct



18
19
20
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/kv/api.rb', line 18

def direct
  @direct
end

#historyObject

Returns the value of attribute history

Returns:

  • (Object)

    the current value of history



18
19
20
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/kv/api.rb', line 18

def history
  @history
end

#max_bytesObject

Returns the value of attribute max_bytes

Returns:

  • (Object)

    the current value of max_bytes



18
19
20
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/kv/api.rb', line 18

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



18
19
20
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/kv/api.rb', line 18

def max_value_size
  @max_value_size
end

#placementObject

Returns the value of attribute placement

Returns:

  • (Object)

    the current value of placement



18
19
20
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/kv/api.rb', line 18

def placement
  @placement
end

#replicasObject

Returns the value of attribute replicas

Returns:

  • (Object)

    the current value of replicas



18
19
20
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/kv/api.rb', line 18

def replicas
  @replicas
end

#republishObject

Returns the value of attribute republish

Returns:

  • (Object)

    the current value of republish



18
19
20
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/kv/api.rb', line 18

def republish
  @republish
end

#storageObject

Returns the value of attribute storage

Returns:

  • (Object)

    the current value of storage



18
19
20
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/kv/api.rb', line 18

def storage
  @storage
end

#ttlObject

Returns the value of attribute ttl

Returns:

  • (Object)

    the current value of ttl



18
19
20
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/nats-pure-2.2.1/lib/nats/io/kv/api.rb', line 18

def ttl
  @ttl
end