Module: CassandraModel::SingleTokenBatch

Extended by:
Forwardable
Includes:
Enumerable
Included in:
SingleTokenCounterBatch, SingleTokenLoggedBatch, SingleTokenUnloggedBatch
Defined in:
lib/cassandra_model/single_token_batch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#result=(value) ⇒ Object

Sets the attribute result

Parameters:

  • value

    the value to set the attribute result to.



6
7
8
# File 'lib/cassandra_model/single_token_batch.rb', line 6

def result=(value)
  @result = value
end

Instance Method Details

#keyspaceObject



10
11
12
# File 'lib/cassandra_model/single_token_batch.rb', line 10

def keyspace
  nil
end

#partition_keyObject



14
15
16
# File 'lib/cassandra_model/single_token_batch.rb', line 14

def partition_key
  @statements.first.partition_key
end