Class: QueryTrack::Trace
- Inherits:
-
Object
- Object
- QueryTrack::Trace
- Defined in:
- lib/query_track/trace.rb
Instance Attribute Summary collapse
-
#full_trace ⇒ Object
readonly
Returns the value of attribute full_trace.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(full_trace) ⇒ Trace
constructor
A new instance of Trace.
Constructor Details
#initialize(full_trace) ⇒ Trace
Returns a new instance of Trace.
5 6 7 |
# File 'lib/query_track/trace.rb', line 5 def initialize(full_trace) @full_trace = full_trace end |
Instance Attribute Details
#full_trace ⇒ Object (readonly)
Returns the value of attribute full_trace.
3 4 5 |
# File 'lib/query_track/trace.rb', line 3 def full_trace @full_trace end |
Instance Method Details
#call ⇒ Object
9 10 11 |
# File 'lib/query_track/trace.rb', line 9 def call full_trace.select { |v| v =~ %r{#{QueryTrack::Settings.config.app_dir}/} }[0] end |