Method: ENUtils::Note.where

Defined in:
lib/evernote_utils/note.rb

.where(core, options = {}) ⇒ Object



30
31
32
33
34
35
# File 'lib/evernote_utils/note.rb', line 30

def self.where(core, options={})
  offset = options.delete(:offset) || 0
  limit  = options.delete(:limit)  || DEFAULT_LIMIT
  result = core.notestore.findNotes(core.token, NoteFilter.build(core, options), offset, limit).notes.map{|n| new(core, n) }
  NoteList.new(core, result, options)
end