Class: QueryLimit::Listener
- Inherits:
-
Object
- Object
- QueryLimit::Listener
- Defined in:
- lib/query_limit/listener.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#stack ⇒ Object
readonly
Returns the value of attribute stack.
Instance Method Summary collapse
-
#initialize ⇒ Listener
constructor
A new instance of Listener.
- #sequel_query(sql, stacktrace) ⇒ Object
Constructor Details
#initialize ⇒ Listener
Returns a new instance of Listener.
9 10 11 |
# File 'lib/query_limit/listener.rb', line 9 def initialize @stack = [] end |
Instance Attribute Details
#stack ⇒ Object (readonly)
Returns the value of attribute stack.
7 8 9 |
# File 'lib/query_limit/listener.rb', line 7 def stack @stack end |