Class: Aerospike::CDT::ListPolicy

Inherits:
Object
  • Object
show all
Defined in:
lib/aerospike/cdt/list_policy.rb

Constant Summary collapse

DEFAULT =
ListPolicy.new

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(order: ListOrder::DEFAULT, write_flags: ListWriteFlags::DEFAULT) ⇒ ListPolicy

Returns a new instance of ListPolicy.



26
27
28
29
# File 'lib/aerospike/cdt/list_policy.rb', line 26

def initialize(order: ListOrder::DEFAULT, write_flags: ListWriteFlags::DEFAULT)
  @order = order
  @flags = write_flags
end

Instance Attribute Details

#flagsObject

Returns the value of attribute flags.



24
25
26
# File 'lib/aerospike/cdt/list_policy.rb', line 24

def flags
  @flags
end

#orderObject

Returns the value of attribute order.



24
25
26
# File 'lib/aerospike/cdt/list_policy.rb', line 24

def order
  @order
end