Sha256: 4bbff85d08b1ae08b3b0f90937808450429f4cb2f2acd85d7c4a86150ad5a3b9
Contents?: true
Size: 464 Bytes
Versions: 6
Compression:
Stored size: 464 Bytes
Contents
require 'cassanity/column' module Cassanity module ResultTransformers class Columns # Internal: Turns result into Array of column families. def call(result, args = {}) columns = [] result.each do |row| columns << Column.new({ name: row['column_name'], type: row['validator'], column_family: args[:column_family], }) end columns end end end end
Version data entries
6 entries across 6 versions & 1 rubygems