Sha256: 21fc82c43ace12bb72aed6a5d3705a22ed2f8c2e59e2e4cec8544225738ffdb3
Contents?: true
Size: 810 Bytes
Versions: 1
Compression:
Stored size: 810 Bytes
Contents
module Milkmaid class ParseNotifier < ::Milkmaid::ConsoleNotifier attr_accessor :batch_record def batch_completed super batch_record.complete! end def batch_record @batch_record ||= ::Milkmaid::FirebaseNotifier::BatchRecord.new end def batch_started(batch_data = {}) super(batch_data) batch_record.start(batch_data) end def log_temperature(temperature) super(temperature) batch_record.add_event(:temperature, temperature) end def post_warning(current_temperature, base_temperature) super(current_temperature, base_temperature) batch_record.add_event(:temperature_warning, current_temperature) end def temperature_reached super batch_record.add_event(:threshold_reached) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
milk_maid-0.1.0 | lib/milkmaid/parse_notifier.rb |