Class: CassandraCleaner::Configuration
- Inherits:
-
Object
- Object
- CassandraCleaner::Configuration
- Defined in:
- lib/cassandra_cleaner/configuration.rb
Instance Attribute Summary collapse
-
#cleaner_tag ⇒ Object
Returns the value of attribute cleaner_tag.
-
#client ⇒ Object
Returns the value of attribute client.
-
#debug ⇒ Object
Returns the value of attribute debug.
Instance Method Summary collapse
- #enable ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_tag ⇒ Object
Returns the value of attribute cleaner_tag.
3 4 5 |
# File 'lib/cassandra_cleaner/configuration.rb', line 3 def cleaner_tag @cleaner_tag end |
#client ⇒ Object
Returns the value of attribute client.
3 4 5 |
# File 'lib/cassandra_cleaner/configuration.rb', line 3 def client @client end |
#debug ⇒ Object
Returns the value of attribute debug.
3 4 5 |
# File 'lib/cassandra_cleaner/configuration.rb', line 3 def debug @debug end |
Instance Method Details
#enable ⇒ Object
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 |