Class: Forms::SubmissionStatuses::Report
- Inherits:
-
Object
- Object
- Forms::SubmissionStatuses::Report
- Defined in:
- lib/forms/submission_statuses/report.rb
Instance Method Summary collapse
- #data ⇒ Object
- #format_data ⇒ Object
-
#initialize(user_account:, allowed_forms:) ⇒ Report
constructor
A new instance of Report.
- #run ⇒ Object
Constructor Details
Instance Method Details
#data ⇒ Object
19 20 21 |
# File 'lib/forms/submission_statuses/report.rb', line 19 def data @dataset = @gateway.data end |
#format_data ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/forms/submission_statuses/report.rb', line 23 def format_data results = @formatter.format_data(@dataset) OpenStruct.new( submission_statuses: results, errors: @dataset.errors ) end |
#run ⇒ Object
14 15 16 17 |
# File 'lib/forms/submission_statuses/report.rb', line 14 def run data format_data end |