class Evertils::Common::Query::Simple
Public Instance Methods
create_note_from_hash(conf)
click to toggle source
@since 0.3.3
# File lib/evertils/common/query/simple.rb, line 62 def create_note_from_hash(conf) entity = Manager::Note.instance entity.create(conf) end
Also aliased as: create_note
create_note_from_yml(full_path)
click to toggle source
@since 0.2.0
# File lib/evertils/common/query/simple.rb, line 34 def create_note_from_yml(full_path) entity = Entity::Note.new entity.create_from_yml(full_path) end
create_notebook(name, stack = nil)
click to toggle source
@since 0.2.0
# File lib/evertils/common/query/simple.rb, line 48 def create_notebook(name, stack = nil) entity = Entity::Notebook.new entity.create(name, stack) end
create_notebooks_from_yml(full_path)
click to toggle source
@since 0.2.0
# File lib/evertils/common/query/simple.rb, line 41 def create_notebooks_from_yml(full_path) entity = Entity::Notebooks.new entity.create_from_yml(full_path) end
create_stack_from_yml(full_path)
click to toggle source
@since 0.2.0
# File lib/evertils/common/query/simple.rb, line 27 def create_stack_from_yml(full_path) stack = Entity::Stack.new stack.create_from_yml(full_path) end
create_tag(name)
click to toggle source
@since 0.3.1
# File lib/evertils/common/query/simple.rb, line 55 def create_tag(name) entity = Manager::Tag.instance entity.create(name) end
destroy_note(name)
click to toggle source
@since 0.2.0
# File lib/evertils/common/query/simple.rb, line 123 def destroy_note(name) entity = Manager::Note.instance note = entity.find(name) note.expunge! end
find_note(name)
click to toggle source
@since 0.2.0
# File lib/evertils/common/query/simple.rb, line 70 def find_note(name) entity = Manager::Note.instance entity.find(name) end
find_note_contents(name)
click to toggle source
@since 0.3.4
# File lib/evertils/common/query/simple.rb, line 84 def find_note_contents(name) entity = Manager::Note.instance entity.find_with_contents(name) end
find_note_contents_using_grammar(grammar)
click to toggle source
@since 0.3.4
# File lib/evertils/common/query/simple.rb, line 91 def find_note_contents_using_grammar(grammar) entity = Manager::Note.instance entity.find_note_contents_using_grammar(grammar) end
find_notebook(name)
click to toggle source
@since 0.3.1
# File lib/evertils/common/query/simple.rb, line 98 def find_notebook(name) entity = Manager::Notebook.instance entity.find(name) end
find_with(conf)
click to toggle source
@since 0.3.13
# File lib/evertils/common/query/simple.rb, line 77 def find_with(conf) entity = Manager::Note.instance entity.find_with(conf) end
note_exists(name)
click to toggle source
@since 0.2.0
# File lib/evertils/common/query/simple.rb, line 115 def note_exists(name) entity = Manager::Note.instance note = entity.find(name) note.exists? end
notebook_by_name(name)
click to toggle source
@since 0.2.0 @deprecated 0.3.1
# File lib/evertils/common/query/simple.rb, line 106 def notebook_by_name(name) deprecation_notice('0.3.1', 'Replaced by #find_notebook method. Will be removed in 0.4.0') entity = Manager::Notebook.instance entity.find(name) end
notebooks()
click to toggle source
@since 0.2.0
# File lib/evertils/common/query/simple.rb, line 7 def notebooks Entity::Notebooks.new.all end
notes_by_notebook(name)
click to toggle source
@since 0.2.0
# File lib/evertils/common/query/simple.rb, line 19 def notes_by_notebook(name) entity = Manager::Notebook.instance nb = entity.find(name) nb.notes end
poll()
click to toggle source
@since 0.2.0
# File lib/evertils/common/query/simple.rb, line 131 def poll sync = Entity::Sync.new sync.state end
user_info()
click to toggle source
@since 0.3.7
# File lib/evertils/common/query/simple.rb, line 138 def user_info auth = Authentication.instance auth.info end