Class: ReportPayload
- Inherits:
-
Object
- Object
- ReportPayload
- Defined in:
- action/lib/report_payload.rb
Overview
Immutable report data shared between the action, local outputs, and sinks.
Instance Attribute Summary collapse
-
#applied_updates ⇒ Object
readonly
Returns the value of attribute applied_updates.
-
#missing_resolved ⇒ Object
readonly
Returns the value of attribute missing_resolved.
-
#parse_warnings ⇒ Object
readonly
Returns the value of attribute parse_warnings.
-
#timings ⇒ Object
readonly
Returns the value of attribute timings.
-
#updates ⇒ Object
readonly
Returns the value of attribute updates.
Instance Method Summary collapse
-
#initialize(updates:, parse_warnings: [], missing_resolved: [], applied_updates: nil, timings: nil) ⇒ ReportPayload
constructor
A new instance of ReportPayload.
Constructor Details
#initialize(updates:, parse_warnings: [], missing_resolved: [], applied_updates: nil, timings: nil) ⇒ ReportPayload
Returns a new instance of ReportPayload.
7 8 9 10 11 12 13 |
# File 'action/lib/report_payload.rb', line 7 def initialize(updates:, parse_warnings: [], missing_resolved: [], applied_updates: nil, timings: nil) @updates = records(updates) @parse_warnings = records(parse_warnings) @missing_resolved = records(missing_resolved) @applied_updates = applied_updates @timings = timings end |
Instance Attribute Details
#applied_updates ⇒ Object (readonly)
Returns the value of attribute applied_updates.
5 6 7 |
# File 'action/lib/report_payload.rb', line 5 def applied_updates @applied_updates end |
#missing_resolved ⇒ Object (readonly)
Returns the value of attribute missing_resolved.
5 6 7 |
# File 'action/lib/report_payload.rb', line 5 def missing_resolved @missing_resolved end |
#parse_warnings ⇒ Object (readonly)
Returns the value of attribute parse_warnings.
5 6 7 |
# File 'action/lib/report_payload.rb', line 5 def parse_warnings @parse_warnings end |
#timings ⇒ Object (readonly)
Returns the value of attribute timings.
5 6 7 |
# File 'action/lib/report_payload.rb', line 5 def timings @timings end |
#updates ⇒ Object (readonly)
Returns the value of attribute updates.
5 6 7 |
# File 'action/lib/report_payload.rb', line 5 def updates @updates end |