Class: Clickwrap::Retention::Applier::Outcome
- Inherits:
-
Data
- Object
- Data
- Clickwrap::Retention::Applier::Outcome
- Defined in:
- lib/clickwrap/retention/applier.rb
Overview
One line of the report. The same shape for every outcome, so a task, a
test, and a job all read it the same way, and note always says in a
sentence why the line is where it is.
Instance Attribute Summary collapse
-
#event_id ⇒ Object
readonly
Returns the value of attribute event_id.
-
#note ⇒ Object
readonly
Returns the value of attribute note.
-
#part ⇒ Object
readonly
Returns the value of attribute part.
-
#policy_key ⇒ Object
readonly
Returns the value of attribute policy_key.
-
#record_id ⇒ Object
readonly
Returns the value of attribute record_id.
Instance Method Summary collapse
-
#initialize(part:, event_id: nil, record_id: nil, policy_key: nil, note: nil) ⇒ Outcome
constructor
A new instance of Outcome.
- #to_report_entry ⇒ Object
Constructor Details
#initialize(part:, event_id: nil, record_id: nil, policy_key: nil, note: nil) ⇒ Outcome
Returns a new instance of Outcome.
26 27 28 |
# File 'lib/clickwrap/retention/applier.rb', line 26 def initialize(part:, event_id: nil, record_id: nil, policy_key: nil, note: nil) super end |
Instance Attribute Details
#event_id ⇒ Object (readonly)
Returns the value of attribute event_id
25 26 27 |
# File 'lib/clickwrap/retention/applier.rb', line 25 def event_id @event_id end |
#note ⇒ Object (readonly)
Returns the value of attribute note
25 26 27 |
# File 'lib/clickwrap/retention/applier.rb', line 25 def note @note end |
#part ⇒ Object (readonly)
Returns the value of attribute part
25 26 27 |
# File 'lib/clickwrap/retention/applier.rb', line 25 def part @part end |
#policy_key ⇒ Object (readonly)
Returns the value of attribute policy_key
25 26 27 |
# File 'lib/clickwrap/retention/applier.rb', line 25 def policy_key @policy_key end |
#record_id ⇒ Object (readonly)
Returns the value of attribute record_id
25 26 27 |
# File 'lib/clickwrap/retention/applier.rb', line 25 def record_id @record_id end |
Instance Method Details
#to_report_entry ⇒ Object
30 31 32 33 34 35 36 37 38 |
# File 'lib/clickwrap/retention/applier.rb', line 30 def to_report_entry { "part" => part.to_s, "event_id" => event_id, "record_id" => record_id&.to_s, "policy_key" => policy_key, "note" => note }.compact end |