Class: QuiverToolbox::API::CreateNotebook

Inherits:
Object
  • Object
show all
Defined in:
lib/quiver_toolbox/api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#notebookObject (readonly)

Returns the value of attribute notebook.



7
8
9
# File 'lib/quiver_toolbox/api.rb', line 7

def notebook
  @notebook
end

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

#execObject



18
19
20
# File 'lib/quiver_toolbox/api.rb', line 18

def exec
  self
end

#storeObject



23
24
25
26
27
# File 'lib/quiver_toolbox/api.rb', line 23

def store
  @notebook.store
  @result = @notebook.file_with_path
  self
end