Class: Duraflame::Processor
- Inherits:
-
Object
- Object
- Duraflame::Processor
- Defined in:
- lib/duraflame/processor.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(room, date_range, output_directory, http_client) ⇒ Processor
constructor
A new instance of Processor.
Constructor Details
#initialize(room, date_range, output_directory, http_client) ⇒ Processor
Returns a new instance of Processor.
6 7 8 9 10 11 |
# File 'lib/duraflame/processor.rb', line 6 def initialize(room, date_range, output_directory, http_client) @room = room @date_range = date_range @output_directory = output_directory @http_client = http_client end |
Instance Method Details
#execute ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/duraflame/processor.rb', line 13 def execute @date_range.each do |date| File.open(@output_directory + "/#{date}-#{@room}.log", 'w') do |file| puts "Writing to #{file.path}" Transcript.new(@room, date, @http_client). do || file.puts .to_s end end end end |