Sha256: b5dbf7dbafca71a6c8bc1776c78e9a8456af4ae7cdb56ab3a12e01e4f4cf288b

Contents?: true

Size: 387 Bytes

Versions: 8

Compression:

Stored size: 387 Bytes

Contents

module MassiveRecord
  module Wrapper
    class ColumnFamiliesCollection < Array
  
      attr_accessor :table
  
      def create(column_family, opts = {})
        if column_family.is_a?(ADAPTER::ColumnFamily)
          self.push(column_family)
        else
          self.push(ADAPTER::ColumnFamily.new(column_family, opts))
        end
    
        true
      end
  
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
massive_record-0.2.2 lib/massive_record/wrapper/column_families_collection.rb
massive_record-0.2.2.rc2 lib/massive_record/wrapper/column_families_collection.rb
massive_record-0.2.2.rc1 lib/massive_record/wrapper/column_families_collection.rb
massive_record-0.2.1 lib/massive_record/wrapper/column_families_collection.rb
massive_record-0.2.1.rc1 lib/massive_record/wrapper/column_families_collection.rb
massive_record-0.2.0 lib/massive_record/wrapper/column_families_collection.rb
massive_record-0.2.0.beta2 lib/massive_record/wrapper/column_families_collection.rb
massive_record-0.2.0.beta lib/massive_record/wrapper/column_families_collection.rb