Class: Log4ever::Evernote
- Inherits:
-
Object
- Object
- Log4ever::Evernote
- Defined in:
- lib/log4r/evernote.rb
Constant Summary collapse
- @@auth_store =
nil
Instance Method Summary collapse
-
#initialize(auth_token, is_sandbox = false) ⇒ Evernote
constructor
Execute authentication to evernote.
-
#note(notebook) ⇒ Object
get registered note or create new note.
-
#notebook ⇒ Object
get registered notebook or create new notebook search the notebook under the stack if stack_name specific.
-
#tag(note) ⇒ Object
get registered tag or create new tag.
Constructor Details
#initialize(auth_token, is_sandbox = false) ⇒ Evernote
Execute authentication to evernote
33 34 35 36 37 |
# File 'lib/log4r/evernote.rb', line 33 def initialize(auth_token, is_sandbox = false) if @@auth_store.nil? @@auth_store = EvernoteAuth.new(auth_token, is_sandbox) end end |
Instance Method Details
#note(notebook) ⇒ Object
get registered note or create new note
47 48 49 50 |
# File 'lib/log4r/evernote.rb', line 47 def note(notebook) @note = Note.new(notebook, @@auth_store) if @note.nil? @note end |