Class: QuiverToolbox::API::CreateNotebook
- Inherits:
-
Object
- Object
- QuiverToolbox::API::CreateNotebook
- Defined in:
- lib/quiver_toolbox/api.rb
Instance Attribute Summary collapse
-
#notebook ⇒ Object
readonly
Returns the value of attribute notebook.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
- #exec ⇒ Object
-
#initialize(name, uuid, path) ⇒ CreateNotebook
constructor
A new instance of CreateNotebook.
- #store ⇒ Object
Constructor Details
#initialize(name, uuid, path) ⇒ CreateNotebook
Returns a new instance of CreateNotebook.
8 9 10 11 12 13 14 15 |
# File 'lib/quiver_toolbox/api.rb', line 8 def initialize(name, uuid, path) @result = nil @notebook = QuiverToolbox::Notebook.new do |n| n.name = name n.uuid = uuid n.store_path = path end end |
Instance Attribute Details
#notebook ⇒ Object (readonly)
Returns the value of attribute notebook.
7 8 9 |
# File 'lib/quiver_toolbox/api.rb', line 7 def notebook @notebook end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
7 8 9 |
# File 'lib/quiver_toolbox/api.rb', line 7 def result @result end |
Instance Method Details
#exec ⇒ Object
18 19 20 |
# File 'lib/quiver_toolbox/api.rb', line 18 def exec self end |
#store ⇒ Object
23 24 25 26 27 |
# File 'lib/quiver_toolbox/api.rb', line 23 def store @notebook.store @result = @notebook.file_with_path self end |