class Log4ever::Evernote

Public Class Methods

new(auth_token, is_sandbox = false) click to toggle source

Execute authentication to evernote

# File lib/log4r/evernote.rb, line 32
def initialize(auth_token, is_sandbox = false)
  if @@auth_store.nil?
    @@auth_store = EvernoteAuth.new(auth_token, is_sandbox)
  end
end

Public Instance Methods

note(notebook) click to toggle source

get registered note or create new note

# File lib/log4r/evernote.rb, line 46
def note(notebook)
  @note = Note.new(notebook, @@auth_store) if @note.nil?
  @note
end
notebook() click to toggle source

get registered notebook or create new notebook search the notebook under the stack if stack_name specific

# File lib/log4r/evernote.rb, line 40
def notebook
  @notebook = Notebook.new(@@auth_store) if @notebook.nil?
  @notebook
end
tag(note) click to toggle source

get registered tag or create new tag

# File lib/log4r/evernote.rb, line 52
def tag(note)
  @tag = Tag.new(note, @@auth_store) if @tag.nil?
  @tag
end