Class: ActiveMonitoring::Current
- Inherits:
-
Object
- Object
- ActiveMonitoring::Current
- Defined in:
- lib/active_monitoring/current.rb
Class Method Summary collapse
- .location ⇒ Object
- .location=(value) ⇒ Object
- .request_id ⇒ Object
- .request_id=(value) ⇒ Object
- .store ⇒ Object
Class Method Details
.location ⇒ Object
17 18 19 |
# File 'lib/active_monitoring/current.rb', line 17 def location store[:location] end |
.location=(value) ⇒ Object
21 22 23 |
# File 'lib/active_monitoring/current.rb', line 21 def location=(value) store[:location] = value end |
.request_id ⇒ Object
9 10 11 |
# File 'lib/active_monitoring/current.rb', line 9 def request_id store[:request_id] end |
.request_id=(value) ⇒ Object
13 14 15 |
# File 'lib/active_monitoring/current.rb', line 13 def request_id=(value) store[:request_id] = value end |
.store ⇒ Object
25 26 27 28 |
# File 'lib/active_monitoring/current.rb', line 25 def store Thread.current[:active_monitoring_store] ||= {} Thread.current[:active_monitoring_store] end |