Class: ReportPayload

Inherits:
Object
  • Object
show all
Defined in:
action/lib/report_payload.rb

Overview

Immutable report data shared between the action, local outputs, and sinks.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_updatesObject (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_resolvedObject (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_warningsObject (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

#timingsObject (readonly)

Returns the value of attribute timings.



5
6
7
# File 'action/lib/report_payload.rb', line 5

def timings
  @timings
end

#updatesObject (readonly)

Returns the value of attribute updates.



5
6
7
# File 'action/lib/report_payload.rb', line 5

def updates
  @updates
end