Class: Aerospike::Exp::Bin
- Inherits:
-
Aerospike::Exp
- Object
- Aerospike::Exp
- Aerospike::Exp::Bin
- Defined in:
- lib/aerospike/exp/exp.rb
Constant Summary
Constants inherited from Aerospike::Exp
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type) ⇒ Bin
constructor
A new instance of Bin.
- #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, type) ⇒ Bin
Returns a new instance of Bin.
1102 1103 1104 1105 |
# File 'lib/aerospike/exp/exp.rb', line 1102 def initialize(name, type) @name = name @type = type end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
1100 1101 1102 |
# File 'lib/aerospike/exp/exp.rb', line 1100 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
1100 1101 1102 |
# File 'lib/aerospike/exp/exp.rb', line 1100 def type @type end |
Instance Method Details
#pack(packer) ⇒ Object
1107 1108 1109 1110 1111 1112 |
# File 'lib/aerospike/exp/exp.rb', line 1107 def pack(packer) packer.write_array_header(3) packer.write(BIN) packer.write(@type) packer.write(@name) end |