Module: Cassie::Statements::Logging::ExecuteEvent::Inspector

Defined in:
lib/cassie/statements/logging/execute_event.rb

Instance Method Summary collapse

Instance Method Details

#inspectObject



58
59
60
# File 'lib/cassie/statements/logging/execute_event.rb', line 58

def inspect
  color "(#{fetch(:duration).round(1)}ms) #{fetch(:query)} [#{fetch(:consistency).upcase}]"
end

#to_sObject



62
63
64
# File 'lib/cassie/statements/logging/execute_event.rb', line 62

def to_s
  inspect
end