Module: CassandraCleaner::CqlRspecNotifications::PreparedStatement

Included in:
Cql::Client::AsynchronousPreparedStatement, Cql::Client::SynchronousPreparedStatement
Defined in:
lib/cassandra_cleaner/cql_rspec_notifications.rb

Instance Method Summary collapse

Instance Method Details

#execute_with_notify(*args) ⇒ Object



35
36
37
38
39
40
# File 'lib/cassandra_cleaner/cql_rspec_notifications.rb', line 35

def execute_with_notify(*args)
  res = execute_without_notify(*args)
  table_name = self..instance_variable_get(:@metadata).try(:first).try(:last).try(:table)
  notify_observers(table_name)
  res
end