Rename DataAvailability to Summary

This commit is contained in:
rebuilt 2023-04-20 20:58:15 -07:00
parent 09963c3323
commit 0ed6cbe6b4
8 changed files with 74 additions and 22 deletions

View file

@ -1,4 +0,0 @@
# frozen_string_literal: true
class DataAvailability < Struct.new(:id, :description, :available?)
end

4
app/models/summary.rb Normal file
View file

@ -0,0 +1,4 @@
# frozen_string_literal: true
class Summary < Struct.new(:id, :description, :available?)
end

View file

@ -29,6 +29,6 @@ class SurveyItem < ActiveRecord::Base
}
def description
DataAvailability.new(survey_item_id, prompt, true)
Summary.new(survey_item_id, prompt, true)
end
end