BathHacked/energy-sparks

View on GitHub
app/services/alerts/adapters/system_adapter.rb

Summary

Maintainability
A
0 mins
Test Coverage
D
69%
module Alerts
  module Adapters
    class SystemAdapter < Adapter
      def report
        alert_class.new(school: @school, aggregate_school: @aggregate_school, alert_type: @alert_type, today: Time.zone.today).report
      end

      def content(_user_type = nil)
        []
      end

      def benchmark_dates
        []
      end

      def has_structured_content?
        false
      end

      def structured_content
        []
      end
    end
  end
end