Module: Watchdocs::Rails::Recordings
- Defined in:
- lib/watchdocs/rails/recordings.rb,
lib/watchdocs/rails/recordings/exporter.rb,
lib/watchdocs/rails/recordings/recorder.rb more...
Defined Under Namespace
Modules: Exporter Classes: Recorder
Class 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
Class Attribute Details
Class Method Details
permalink .clear!(from_specs: true) ⇒ Object
[View source]
16 17 18 19 |
# File 'lib/watchdocs/rails/recordings.rb', line 16 def clear!(from_specs: true) set_store(from_specs) clear_recordings end |
permalink .export(recordings = nil, from_specs: true) ⇒ Object
[View source]
21 22 23 24 25 26 |
# File 'lib/watchdocs/rails/recordings.rb', line 21 def export(recordings = nil, from_specs: true) set_store(from_specs) recordings ||= current_recordings export_recorings(recordings) && clear!(from_specs: from_specs) $stderr.puts "Watchdocs: #{recordings.count} requests exported" end |