Class: DatastaxRails::Cql::DropKeyspace
- Defined in:
- lib/datastax_rails/cql/drop_keyspace.rb
Instance Method Summary collapse
-
#initialize(ks_name) ⇒ DropKeyspace
constructor
A new instance of DropKeyspace.
- #to_cql ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(ks_name) ⇒ DropKeyspace
Returns a new instance of DropKeyspace.
4 5 6 |
# File 'lib/datastax_rails/cql/drop_keyspace.rb', line 4 def initialize(ks_name) @ks_name = ks_name end |
Instance Method Details
#to_cql ⇒ Object
8 9 10 |
# File 'lib/datastax_rails/cql/drop_keyspace.rb', line 8 def to_cql "DROP KEYSPACE #{@ks_name}" end |