Class: Cql::Client::ResultMetadata

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/cql/client/result_metadata.rb

Overview

A collection of metadata (keyspace, table, name and type) of a result set.

See Also:

Instance Method Summary collapse

Instance Method Details

#[](column_name) ⇒ ColumnMetadata

Returns the column metadata

Returns:



19
20
21
# File 'lib/cql/client/result_metadata.rb', line 19

def [](column_name)
  @metadata[column_name]
end

#each {|metadata| ... } ⇒ Enumerable<ColumnMetadata>

Iterates over the metadata for each column

Yield Parameters:

Returns:



27
28
29
# File 'lib/cql/client/result_metadata.rb', line 27

def each(&block)
  @metadata.each_value(&block)
end