Class: Focus::Action
- Inherits:
-
Object
show all
- Includes:
- Interactor
- Defined in:
- lib/focus/action.rb
Direct Known Subclasses
ChangeBlinkColor, ChangeSlackDoNotDisturb, ChangeSlackPresence, LogFocusTime, PostWorkLogToJira, RunShellCommand, StartBlinkServer, StartFocusTime, StartRescueTime, StrobeBlinkColor, ToggleMacNotificationCenter
Instance Method Summary
collapse
Instance Method Details
#call ⇒ Object
This method is used internally and should not be used within actions.
32
33
34
|
# File 'lib/focus/action.rb', line 32
def call
perform
end
|
#error_message ⇒ Object
27
28
29
|
# File 'lib/focus/action.rb', line 27
def error_message
"#{self.class.to_s.split('::').last} failed"
end
|
25
|
# File 'lib/focus/action.rb', line 25
def perform; end
|