Class: Watchdocs::Rails::Recordings::Recorder

Inherits:
Object
  • Object
show all
Defined in:
lib/watchdocs/rails/recordings/recorder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#outputObject (readonly)

Returns the value of attribute output.



5
6
7
# File 'lib/watchdocs/rails/recordings/recorder.rb', line 5

def output
  @output
end

#storeObject (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