Class: AerospikeNative::Record
- Inherits:
-
Object
- Object
- AerospikeNative::Record
- Defined in:
- ext/aerospike_native/record.c
Instance Attribute Summary collapse
- #bins ⇒ Object readonly
- #gen ⇒ Object readonly
- #key ⇒ Object readonly
- #ttl ⇒ Object readonly
Instance Method Summary collapse
-
#new(key, bins, gen, ttl) ⇒ AerospikeNative::Record
constructor
initialize new record.
Constructor Details
#new(key, bins, gen, ttl) ⇒ AerospikeNative::Record
initialize new record
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'ext/aerospike_native/record.c', line 13
VALUE record_initialize(VALUE vSelf, VALUE vKey, VALUE vBins, VALUE vGen, VALUE vTtl)
{
check_aerospike_key(vKey);
Check_Type(vBins, T_HASH);
Check_Type(vGen, T_FIXNUM);
Check_Type(vTtl, T_FIXNUM);
rb_iv_set(vSelf, "@key", vKey);
rb_iv_set(vSelf, "@bins", vBins);
rb_iv_set(vSelf, "@gen", vGen);
rb_iv_set(vSelf, "@ttl", vTtl);
return vSelf;
}
|