mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-15 09:45:53 -07:00
dirty commit: can't get references to work correctly between any tables
This commit is contained in:
parent
e1f0b78236
commit
a4fddbeced
183 changed files with 5461 additions and 5 deletions
22
app/presenters/dashboard/data_item_presenter.rb
Normal file
22
app/presenters/dashboard/data_item_presenter.rb
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Dashboard
|
||||
class DataItemPresenter
|
||||
attr_reader :measure_id, :has_sufficient_data, :school, :academic_year
|
||||
|
||||
def initialize(measure_id:, has_sufficient_data:, school:, academic_year:)
|
||||
@measure_id = measure_id
|
||||
@has_sufficient_data = has_sufficient_data
|
||||
@school = school
|
||||
@academic_year = academic_year
|
||||
end
|
||||
|
||||
def data_item_accordion_id
|
||||
"data-item-accordion-#{@measure_id}"
|
||||
end
|
||||
|
||||
def sufficient_data?
|
||||
@has_sufficient_data
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue