Class: CassandraCQL::V08::Result

Inherits:
Result
  • Object
show all
Defined in:
lib/cassandra-cql/0.8/result.rb

Instance Attribute Summary

Attributes inherited from Result

#cursor, #result, #schema

Instance Method Summary collapse

Methods inherited from Result

#fetch, #fetch_array, #fetch_hash, #fetch_row, #int?, #rows, #rows?, #void?

Constructor Details

#initialize(result, column_family) ⇒ Result

Returns a new instance of Result.



16
17
18
19
20
# File 'lib/cassandra-cql/0.8/result.rb', line 16

def initialize(result, column_family)
  @result = result
  @schema = ResultSchema.new(column_family) if rows?
  @cursor = 0
end