Class: Vivarium::ObservationSession
- Inherits:
-
Object
- Object
- Vivarium::ObservationSession
- Defined in:
- lib/vivarium.rb
Instance Method Summary collapse
-
#initialize(store:, pid:, tracer:) ⇒ ObservationSession
constructor
A new instance of ObservationSession.
- #stop ⇒ Object
Constructor Details
#initialize(store:, pid:, tracer:) ⇒ ObservationSession
Returns a new instance of ObservationSession.
1468 1469 1470 1471 1472 1473 |
# File 'lib/vivarium.rb', line 1468 def initialize(store:, pid:, tracer:) @store = store @pid = pid @tracer = tracer @stopped = false end |
Instance Method Details
#stop ⇒ Object
1475 1476 1477 1478 1479 1480 1481 |
# File 'lib/vivarium.rb', line 1475 def stop return if @stopped @tracer.disable @store.unregister_pid(@pid) @stopped = true end |