Module: Mercy::Report::Multiple
- Defined in:
- lib/mercy/report/multiple.rb
Instance Method Summary collapse
Instance Method Details
#as_json ⇒ Object
2 3 4 5 6 |
# File 'lib/mercy/report/multiple.rb', line 2 def as_json { status: status }.merge(sub_reports_hash) end |
#error? ⇒ Boolean
8 9 10 |
# File 'lib/mercy/report/multiple.rb', line 8 def error? sub_reports.any?(&:error?) end |