class Evertils::Common::Manager::Note

Public Instance Methods

create(config) click to toggle source

@since 0.3.0

# File lib/evertils/common/manager/note.rb, line 11
def create(config)
  entity = Evertils::Common::Entity::Note.new
  entity.create(config)
  entity
end
find(name) click to toggle source

@since 0.3.0

# File lib/evertils/common/manager/note.rb, line 19
def find(name)
  entity = Evertils::Common::Entity::Note.new
  entity.find(name)
  entity
end
find_note_contents_using_grammar(grammar) click to toggle source

@since 0.3.18

# File lib/evertils/common/manager/note.rb, line 43
def find_note_contents_using_grammar(grammar)
  entity = Evertils::Common::Entity::Note.new
  entity.find_note_contents_using_grammar(grammar)
  entity
end
find_or_create(name, stack = nil) click to toggle source

@since 0.3.1

# File lib/evertils/common/manager/note.rb, line 51
def find_or_create(name, stack = nil)
  search_result = find(name)

  if !search_result
    note = create(name, stack)
  else
    note = search_result
  end

  note
end
find_with(conf) click to toggle source

@since 0.3.13

# File lib/evertils/common/manager/note.rb, line 27
def find_with(conf)
  entity = Evertils::Common::Entity::Note.new
  entity.find_with(conf)
  entity
end
find_with_contents(name) click to toggle source

@since 0.3.0

# File lib/evertils/common/manager/note.rb, line 35
def find_with_contents(name)
  entity = Evertils::Common::Entity::Note.new
  entity.find_with_contents(name)
  entity
end