Sha256: 3b493c9aa6285e2fc239c372a10def12ad036eba3febeeb2f14ebee3ee77ec48
Contents?: true
Size: 491 Bytes
Versions: 6
Compression:
Stored size: 491 Bytes
Contents
require 'cassanity/column_family' module Cassanity module ResultTransformers class ColumnFamilies # Internal: Turns result into Array of column families. def call(result, args = {}) column_families = [] result.each do |row| column_families << ColumnFamily.new({ name: row['columnfamily'] || row['columnfamily_name'], keyspace: args[:keyspace], }) end column_families end end end end
Version data entries
6 entries across 6 versions & 1 rubygems