Class: Watchdocs::Rails::Recordings::Recorder
- Defined in:
- lib/watchdocs/rails/recordings/recorder.rb
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#store ⇒ Object
readonly
Returns the value of attribute store.
Instance Method Summary collapse
- #call(new_call) ⇒ Object
-
#initialize(from_specs: true) ⇒ Recorder
constructor
A new instance of Recorder.
Constructor Details
#initialize(from_specs: true) ⇒ Recorder
Returns a new instance of Recorder.
7 8 9 |
# File 'lib/watchdocs/rails/recordings/recorder.rb', line 7 def initialize(from_specs: true) set_store(from_specs) end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
5 6 7 |
# File 'lib/watchdocs/rails/recordings/recorder.rb', line 5 def output @output end |
#store ⇒ Object (readonly)
Returns the value of attribute store.
5 6 7 |
# File 'lib/watchdocs/rails/recordings/recorder.rb', line 5 def store @store end |
Instance Method Details
#call(new_call) ⇒ Object
11 12 13 14 15 |
# File 'lib/watchdocs/rails/recordings/recorder.rb', line 11 def call(new_call) record_new save_recordings send_recordings if buffer_full? end |