BathHacked/energy-sparks

View on GitHub
app/services/schools/school_updater.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Schools
  class SchoolUpdater
    def initialize(school)
      @school = school
    end

    def after_update!
      invalidate_cache
    end

    private

    def invalidate_cache
      AggregateSchoolService.new(@school).invalidate_cache
    end
  end
end