Class: CassandraCleaner::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/cassandra_cleaner/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
# File 'lib/cassandra_cleaner/configuration.rb', line 5

def initialize
  @cleaner_tag = :clean_cassandra
  @debug = false
  @client = nil
end

Instance Attribute Details

#cleaner_tagObject

Returns the value of attribute cleaner_tag.



3
4
5
# File 'lib/cassandra_cleaner/configuration.rb', line 3

def cleaner_tag
  @cleaner_tag
end

#clientObject

Returns the value of attribute client.



3
4
5
# File 'lib/cassandra_cleaner/configuration.rb', line 3

def client
  @client
end

#debugObject

Returns the value of attribute debug.



3
4
5
# File 'lib/cassandra_cleaner/configuration.rb', line 3

def debug
  @debug
end

Instance Method Details

#enableObject



11
12
13
14
15
# File 'lib/cassandra_cleaner/configuration.rb', line 11

def enable
  RSpec.configure do |config|
    config.include CassandraCleaner::RspecHelper
  end
end