Class: QuiverToolbox::CLI::Note

Inherits:
Thor
  • Object
show all
Defined in:
lib/quiver_toolbox/cli/note.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#apiObject (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

Returns:

  • (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, create_options)
  @api.exec.store
  self
end