Class: Assistant::BrainMaintenance::Action

Inherits:
Data
  • Object
show all
Defined in:
app/services/assistant/brain_maintenance.rb

Overview

One reversible action the run took (rendered in the digest).

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idsObject (readonly)

Returns the value of attribute ids

Returns:

  • (Object)

    the current value of ids



16
17
18
# File 'app/services/assistant/brain_maintenance.rb', line 16

def ids
  @ids
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



16
17
18
# File 'app/services/assistant/brain_maintenance.rb', line 16

def kind
  @kind
end

#reasonObject (readonly)

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



16
17
18
# File 'app/services/assistant/brain_maintenance.rb', line 16

def reason
  @reason
end

#titleObject (readonly)

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



16
17
18
# File 'app/services/assistant/brain_maintenance.rb', line 16

def title
  @title
end

#token_savingsObject (readonly)

Returns the value of attribute token_savings

Returns:

  • (Object)

    the current value of token_savings



16
17
18
# File 'app/services/assistant/brain_maintenance.rb', line 16

def token_savings
  @token_savings
end