Class: Aerospike::Exp::Module
- Inherits:
-
Aerospike::Exp
- Object
- Aerospike::Exp
- Aerospike::Exp::Module
- Defined in:
- lib/aerospike/exp/exp.rb
Overview
For internal use only.
Constant Summary
Constants inherited from Aerospike::Exp
Instance Attribute Summary collapse
-
#bin ⇒ Object
readonly
Returns the value of attribute bin.
-
#bytes ⇒ Object
readonly
Returns the value of attribute bytes.
-
#module ⇒ Object
readonly
Returns the value of attribute module.
-
#ret_type ⇒ Object
readonly
Returns the value of attribute ret_type.
Instance Method Summary collapse
-
#initialize(bin, bytes, ret_type, modul) ⇒ Module
constructor
A new instance of Module.
- #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, 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(bin, bytes, ret_type, modul) ⇒ Module
Returns a new instance of Module.
1081 1082 1083 1084 1085 1086 |
# File 'lib/aerospike/exp/exp.rb', line 1081 def initialize(bin, bytes, ret_type, modul) @bin = bin @bytes = bytes @ret_type = ret_type @module = modul end |
Instance Attribute Details
#bin ⇒ Object (readonly)
Returns the value of attribute bin.
1079 1080 1081 |
# File 'lib/aerospike/exp/exp.rb', line 1079 def bin @bin end |
#bytes ⇒ Object (readonly)
Returns the value of attribute bytes.
1079 1080 1081 |
# File 'lib/aerospike/exp/exp.rb', line 1079 def bytes @bytes end |
#module ⇒ Object (readonly)
Returns the value of attribute module.
1079 1080 1081 |
# File 'lib/aerospike/exp/exp.rb', line 1079 def module @module end |
#ret_type ⇒ Object (readonly)
Returns the value of attribute ret_type.
1079 1080 1081 |
# File 'lib/aerospike/exp/exp.rb', line 1079 def ret_type @ret_type end |
Instance Method Details
#pack(packer) ⇒ Object
1088 1089 1090 1091 1092 1093 1094 1095 1096 |
# File 'lib/aerospike/exp/exp.rb', line 1088 def pack(packer) packer.write_array_header(5) packer.write(Exp::CALL) packer.write(@ret_type) packer.write(@module) # packer.pack_byte_array(@bytes, 0, @bytes.length) packer.write_raw(@bytes) @bin.pack(packer) end |