Class: Aerospike::Exp::Def
- Inherits:
-
Aerospike::Exp
- Object
- Aerospike::Exp
- Aerospike::Exp::Def
- Defined in:
- lib/aerospike/exp/exp.rb
Constant Summary
Constants inherited from Aerospike::Exp
Instance Attribute Summary collapse
-
#exp ⇒ Object
readonly
Returns the value of attribute exp.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, exp) ⇒ Def
constructor
A new instance of Def.
- #pack(packer) ⇒ Object
Methods inherited from Aerospike::Exp
abs, add, and, arshift, bin, bin_exists, bin_type, blob_bin, blob_val, bool_bin, bool_val, #bytes, ceil, cond, count, def, device_size, digest_modulo, div, eq, exclusive, float_bin, float_val, floor, ge, geo, geo_bin, geo_compare, gt, hll_bin, infinity_val, int_and, int_bin, int_not, int_or, int_val, int_xor, is_tombstone, key, key_exists, last_update, le, let, list_bin, list_val, log, lscan, lshift, lt, map_bin, map_val, max, memory_size, min, mod, mul, ne, nil_val, not, or, pow, record_size, regex_compare, rscan, rshift, set_name, since_update, #size, str_bin, str_val, sub, to_float, to_int, ttl, unknown, var, void_time, wildcard_val, #write
Constructor Details
#initialize(name, exp) ⇒ Def
Returns a new instance of Def.
1155 1156 1157 1158 |
# File 'lib/aerospike/exp/exp.rb', line 1155 def initialize(name, exp) @name = name @exp = exp end |
Instance Attribute Details
#exp ⇒ Object (readonly)
Returns the value of attribute exp.
1153 1154 1155 |
# File 'lib/aerospike/exp/exp.rb', line 1153 def exp @exp end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
1153 1154 1155 |
# File 'lib/aerospike/exp/exp.rb', line 1153 def name @name end |
Instance Method Details
#pack(packer) ⇒ Object
1160 1161 1162 1163 |
# File 'lib/aerospike/exp/exp.rb', line 1160 def pack(packer) packer.write(@name) @exp.pack(packer) end |