Class: NoteDeleter
- Inherits:
-
Object
- Object
- NoteDeleter
- Includes:
- Modules::ResourceUtils
- Defined in:
- lib/notes_cli/services/note_deleter.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(notebook, title, notebook_path, workspace_path) ⇒ NoteDeleter
constructor
A new instance of NoteDeleter.
Methods included from Modules::ResourceUtils
#config, #create?, #current_workspace, #notebook_exists?, #notebook_path, #notes_folder, #workspace_exists?, #workspace_path
Constructor Details
#initialize(notebook, title, notebook_path, workspace_path) ⇒ NoteDeleter
Returns a new instance of NoteDeleter.
6 7 8 9 10 11 |
# File 'lib/notes_cli/services/note_deleter.rb', line 6 def initialize(notebook, title, notebook_path, workspace_path) @notebook = notebook @title = title.join('_') @notebook_path = notebook_path @workspace_path = workspace_path end |
Instance Method Details
#call ⇒ Object
13 14 15 16 17 |
# File 'lib/notes_cli/services/note_deleter.rb', line 13 def call handle_errors delete_note notify end |