Module: Watchdocs::Rails::Recordings
- Defined in:
- lib/watchdocs/rails/recordings.rb,
lib/watchdocs/rails/recordings/exporter.rb,
lib/watchdocs/rails/recordings/recorder.rb
Defined Under Namespace
Modules: Exporter Classes: Recorder
Instance Attribute Summary collapse
-
#store ⇒ Object
readonly
Returns the value of attribute store.
Class Method Summary collapse
- .clear!(from_specs: true) ⇒ Object
- .export(recordings = nil, from_specs: true) ⇒ Object
- .record(new_call, from_specs: true) ⇒ Object
Instance Attribute Details
#store ⇒ Object (readonly)
Returns the value of attribute store.
7 8 9 |
# File 'lib/watchdocs/rails/recordings.rb', line 7 def store @store end |
Class Method Details
.clear!(from_specs: true) ⇒ Object
16 17 18 19 |
# File 'lib/watchdocs/rails/recordings.rb', line 16 def clear!(from_specs: true) set_store(from_specs) clear_recordings end |
.export(recordings = nil, from_specs: true) ⇒ Object
21 22 23 24 25 |
# File 'lib/watchdocs/rails/recordings.rb', line 21 def export(recordings = nil, from_specs: true) set_store(from_specs) recordings ||= current_recordings send_recordings(recordings) && clear!(from_specs) end |