Sha256: 0a5b3c62b8c54bb4f2c0faf52ab2d084fd3b5a22e4e4176b82bf8b985201d1d4

Contents?: true

Size: 399 Bytes

Versions: 3

Compression:

Stored size: 399 Bytes

Contents

module Socialization
  class << self
    def cassandra
      @cassandra
    end

    def cassandra=(cassandra)
      @cassandra = cassandra
    end

    def keyspace
      @cas_keyspace
    end

    def keyspace=(keyspace)
      @cas_keyspace = keyspace
    end

    def cassandra_session
      @cassandra.use @cas_keyspace if @cassandra.keyspace != @cas_keyspace
      @cassandra
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
socialization-cassandra-0.0.4.pre.alpha lib/socialization/stores/cassandra/config.rb
socialization-cassandra-0.0.3.pre.alpha lib/socialization/stores/cassandra/config.rb
socialization-cassandra-0.0.2.pre.alpha lib/socialization/stores/cassandra/config.rb