Class: Aerospike::CDT::MapPolicy
- Inherits:
-
Object
- Object
- Aerospike::CDT::MapPolicy
- Defined in:
- lib/aerospike/cdt/map_policy.rb
Constant Summary collapse
- DEFAULT =
MapPolicy.new
Instance Attribute Summary collapse
-
#order ⇒ Object
Returns the value of attribute order.
-
#write_mode ⇒ Object
Returns the value of attribute write_mode.
Instance Method Summary collapse
-
#initialize(order: nil, write_mode: nil) ⇒ MapPolicy
constructor
A new instance of MapPolicy.
- #value ⇒ Object
Constructor Details
#initialize(order: nil, write_mode: nil) ⇒ MapPolicy
Returns a new instance of MapPolicy.
24 25 26 27 |
# File 'lib/aerospike/cdt/map_policy.rb', line 24 def initialize(order: nil, write_mode: nil) @order = order || MapOrder::DEFAULT @write_mode = write_mode || MapWriteMode::DEFAULT end |
Instance Attribute Details
#order ⇒ Object
Returns the value of attribute order.
22 23 24 |
# File 'lib/aerospike/cdt/map_policy.rb', line 22 def order @order end |
#write_mode ⇒ Object
Returns the value of attribute write_mode.
22 23 24 |
# File 'lib/aerospike/cdt/map_policy.rb', line 22 def write_mode @write_mode end |
Instance Method Details
#value ⇒ Object
31 32 33 |
# File 'lib/aerospike/cdt/map_policy.rb', line 31 def value order.to_int end |