Class: QuiverToolbox::CLI::Note
- Inherits:
-
Thor
- Object
- Thor
- QuiverToolbox::CLI::Note
- Defined in:
- lib/quiver_toolbox/cli/note.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
readonly
Returns the value of attribute api.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#api ⇒ Object (readonly)
Returns the value of attribute api.
9 10 11 |
# File 'lib/quiver_toolbox/cli/note.rb', line 9 def api @api end |
Class Method Details
.exit_on_failure? ⇒ Boolean
4 5 6 |
# File 'lib/quiver_toolbox/cli/note.rb', line 4 def exit_on_failure? true end |
Instance Method Details
#create(title, body) ⇒ Object
17 18 19 20 21 |
# File 'lib/quiver_toolbox/cli/note.rb', line 17 def create(title, body) @api = QuiverToolbox::API::CreateNote.new(title, body, ) @api.exec.store self end |