Sha256: c28ea61fb118a3ffa54df937b224ee33bcb236c48d28d2249d6f3173d85ed5ba

Contents?: true

Size: 303 Bytes

Versions: 5

Compression:

Stored size: 303 Bytes

Contents

module CassandraObject
  module Connection
    extend ActiveSupport::Concern
    
    included do
      class_attribute :connection
    end

    module ClassMethods
      def establish_connection(spec)
        self.connection = Cassandra.new(spec[:keyspace], spec[:servers])
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gotime-cassandra_object-2.2.1 lib/cassandra_object/connection.rb
gotime-cassandra_object-2.2.0 lib/cassandra_object/connection.rb
gotime-cassandra_object-2.1.2 lib/cassandra_object/connection.rb
gotime-cassandra_object-2.1.1 lib/cassandra_object/connection.rb
gotime-cassandra_object-2.1.0 lib/cassandra_object/connection.rb