Class: Assistant::BrainMaintenance::Action
- Inherits:
-
Data
- Object
- Data
- Assistant::BrainMaintenance::Action
- Defined in:
- app/services/assistant/brain_maintenance.rb
Overview
One reversible action the run took (rendered in the digest).
Instance Attribute Summary collapse
-
#ids ⇒ Object
readonly
Returns the value of attribute ids.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#token_savings ⇒ Object
readonly
Returns the value of attribute token_savings.
Instance Method Summary collapse
-
#initialize(kind:, title:, ids: [], reason: nil, token_savings: 0) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(kind:, title:, ids: [], reason: nil, token_savings: 0) ⇒ Action
Returns a new instance of Action.
17 18 19 |
# File 'app/services/assistant/brain_maintenance.rb', line 17 def initialize(kind:, title:, ids: [], reason: nil, token_savings: 0) super end |
Instance Attribute Details
#ids ⇒ Object (readonly)
Returns the value of attribute ids
16 17 18 |
# File 'app/services/assistant/brain_maintenance.rb', line 16 def ids @ids end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
16 17 18 |
# File 'app/services/assistant/brain_maintenance.rb', line 16 def kind @kind end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
16 17 18 |
# File 'app/services/assistant/brain_maintenance.rb', line 16 def reason @reason end |
#title ⇒ Object (readonly)
Returns the value of attribute title
16 17 18 |
# File 'app/services/assistant/brain_maintenance.rb', line 16 def title @title end |
#token_savings ⇒ Object (readonly)
Returns the value of attribute token_savings
16 17 18 |
# File 'app/services/assistant/brain_maintenance.rb', line 16 def token_savings @token_savings end |