Class: Cql::Client::ResultMetadata
- Inherits:
-
Object
- Object
- Cql::Client::ResultMetadata
- Includes:
- Enumerable
- Defined in:
- lib/cql/client/result_metadata.rb
Overview
A collection of metadata (keyspace, table, name and type) of a result set.
Instance Method Summary collapse
-
#[](column_name) ⇒ ColumnMetadata
Returns the column metadata.
-
#each {|metadata| ... } ⇒ Enumerable<ColumnMetadata>
Iterates over the metadata for each column.
Instance Method Details
#[](column_name) ⇒ ColumnMetadata
Returns the column metadata
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
27 28 29 |
# File 'lib/cql/client/result_metadata.rb', line 27 def each(&block) @metadata.each_value(&block) end |