Class: Rack::DevInsight::Context
- Inherits:
-
Object
- Object
- Rack::DevInsight::Context
- Defined in:
- lib/rack/dev_insight/context.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Class Method Summary collapse
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
16 17 18 |
# File 'lib/rack/dev_insight/context.rb', line 16 def id @id end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
16 17 18 |
# File 'lib/rack/dev_insight/context.rb', line 16 def result @result end |
Class Method Details
.create_current(id) ⇒ Object
11 12 13 |
# File 'lib/rack/dev_insight/context.rb', line 11 def create_current(id) Thread.current[:rack_dev_insight_context] = new(id) end |
.current ⇒ Object
7 8 9 |
# File 'lib/rack/dev_insight/context.rb', line 7 def current Thread.current[:rack_dev_insight_context] end |