Class: Aerospike::BatchItem
- Inherits:
-
Object
- Object
- Aerospike::BatchItem
- Defined in:
- lib/aerospike/command/batch_item.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#indexes ⇒ Object
Returns the value of attribute indexes.
-
#key ⇒ Object
Returns the value of attribute key.
Class Method Summary collapse
Instance Method Summary collapse
- #index ⇒ Object
-
#initialize(key, indexes) ⇒ BatchItem
constructor
A new instance of BatchItem.
Constructor Details
#initialize(key, indexes) ⇒ BatchItem
Returns a new instance of BatchItem.
34 35 36 37 |
# File 'lib/aerospike/command/batch_item.rb', line 34 def initialize(key, indexes) @key = key @indexes = indexes end |
Instance Attribute Details
#indexes ⇒ Object
Returns the value of attribute indexes.
23 24 25 |
# File 'lib/aerospike/command/batch_item.rb', line 23 def indexes @indexes end |
#key ⇒ Object
Returns the value of attribute key.
22 23 24 |
# File 'lib/aerospike/command/batch_item.rb', line 22 def key @key end |
Class Method Details
Instance Method Details
#index ⇒ Object
39 40 41 |
# File 'lib/aerospike/command/batch_item.rb', line 39 def index indexes.shift end |