Skip to content

Business intelligence made simple

Raise error for unknown forecaster [skip ci]

Andrew Kane46d91e48707b
diff --git a/lib/blazer/result.rb b/lib/blazer/result.rb
index 58458cfe..02a9aa05 100644
--- a/lib/blazer/result.rb
+++ b/lib/blazer/result.rb
@@ -98,9 +98,11 @@ module Blazer
when "prophet"
require "prophet"
forecast = Prophet.forecast(@rows.to_h, count: count)
- else
+ when "trend"
require "trend"
forecast = Trend.forecast(@rows.to_h, count: count)
+ else
+ raise "Unknown forecaster"
end
# round integers