Class: Aerospike::Record
- Inherits:
-
Object
- Object
- Aerospike::Record
- Defined in:
- lib/aerospike/record.rb
Instance Attribute Summary collapse
-
#bins ⇒ Object
readonly
Returns the value of attribute bins.
-
#expiration ⇒ Object
readonly
Returns the value of attribute expiration.
-
#generation ⇒ Object
readonly
Returns the value of attribute generation.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(node, rec_key, rec_bins, rec_gen, rec_exp) ⇒ Record
constructor
A new instance of Record.
- #to_s ⇒ Object
Constructor Details
#initialize(node, rec_key, rec_bins, rec_gen, rec_exp) ⇒ Record
25 26 27 28 29 30 31 |
# File 'lib/aerospike/record.rb', line 25 def initialize(node, rec_key, rec_bins, rec_gen, rec_exp) @key = rec_key @bins = rec_bins @generation = rec_gen @expiration = rec_exp @node = node end |
Instance Attribute Details
#bins ⇒ Object (readonly)
Returns the value of attribute bins.
23 24 25 |
# File 'lib/aerospike/record.rb', line 23 def bins @bins end |
#expiration ⇒ Object (readonly)
Returns the value of attribute expiration.
23 24 25 |
# File 'lib/aerospike/record.rb', line 23 def expiration @expiration end |
#generation ⇒ Object (readonly)
Returns the value of attribute generation.
23 24 25 |
# File 'lib/aerospike/record.rb', line 23 def generation @generation end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
23 24 25 |
# File 'lib/aerospike/record.rb', line 23 def key @key end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
23 24 25 |
# File 'lib/aerospike/record.rb', line 23 def node @node end |
Instance Method Details
#to_s ⇒ Object
33 34 35 36 37 38 |
# File 'lib/aerospike/record.rb', line 33 def to_s 'key: `' + key.to_s + '` ' + 'bins: `' + bins.to_s + '` ' + 'generation: `' + generation.to_s + '` ' + 'expiration: `' + expiration.to_s + '` ' end |