Class: Aerospike::Record

Inherits:
Object
  • Object
show all
Defined in:
lib/aerospike/record.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node, rec_key, rec_bins, rec_gen, rec_exp) ⇒ Record

Returns a new instance of 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

#binsObject (readonly)

Returns the value of attribute bins.



23
24
25
# File 'lib/aerospike/record.rb', line 23

def bins
  @bins
end

#expirationObject (readonly)

Returns the value of attribute expiration.



23
24
25
# File 'lib/aerospike/record.rb', line 23

def expiration
  @expiration
end

#generationObject (readonly)

Returns the value of attribute generation.



23
24
25
# File 'lib/aerospike/record.rb', line 23

def generation
  @generation
end

#keyObject (readonly)

Returns the value of attribute key.



23
24
25
# File 'lib/aerospike/record.rb', line 23

def key
  @key
end

#nodeObject (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_sObject



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