Sha256: 50cf870c08790fdd10b7df2959b62d542593bdb2d719489541abd101fcda9f4e

Contents?: true

Size: 581 Bytes

Versions: 13

Compression:

Stored size: 581 Bytes

Contents

module MilkMaid
  class ConsoleNotifier
    def batch_completed
      puts "#{Time.now} - Batch Completed"
    end

    def batch_started(_)
      puts "#{Time.now} - Batch Started"
    end

    def log_temperature(temperature)
      puts "#{Time.now} - Temperature reading: #{temperature}"
    end

    def post_warning(current_temperature, base_temperature)
      puts "#{Time.now} - WARNING: Current Temperature: #{current_temperature} Base Temperature: #{base_temperature}"
    end

    def temperature_reached
      puts "#{Time.now} - Temperature reached!"
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
milk_maid-0.6.1 lib/milk_maid/console_notifier.rb
milk_maid-0.5.1 lib/milk_maid/console_notifier.rb
milk_maid-0.5.0 lib/milk_maid/console_notifier.rb
milk_maid-0.4.0 lib/milk_maid/console_notifier.rb
milk_maid-0.3.0 lib/milk_maid/console_notifier.rb
milk_maid-0.2.8 lib/milk_maid/console_notifier.rb
milk_maid-0.2.7 lib/milk_maid/console_notifier.rb
milk_maid-0.2.6 lib/milk_maid/console_notifier.rb
milk_maid-0.2.5 lib/milk_maid/console_notifier.rb
milk_maid-0.2.4 lib/milk_maid/console_notifier.rb
milk_maid-0.2.3 lib/milk_maid/console_notifier.rb
milk_maid-0.2.2 lib/milk_maid/console_notifier.rb
milk_maid-0.2.0 lib/milk_maid/console_notifier.rb