Sha256: b44148f0e13581b7aab3c0f07b135925a31ca1f09bed44c1b272a20716ea406e

Contents?: true

Size: 671 Bytes

Versions: 1

Compression:

Stored size: 671 Bytes

Contents

module Evertils
  module Common
    module Entity
      class Notes < Entity::Base

        def findAll(title, notebook = nil)
          filter = ::Evernote::EDAM::NoteStore::NoteFilter.new
          filter.words = "intitle:#{title}" if title
          filter.notebookGuid = notebook if notebook

          @evernote.call(:findNotes, filter, nil, 300)
        end

        def findOne(title, notebook = nil)
          filter = ::Evernote::EDAM::NoteStore::NoteFilter.new
          filter.words = "intitle:#{title}" if title
          filter.notebookGuid = notebook if notebook

          @evernote.call(:findNotes, filter, nil, 1)
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
evertils-common-0.2.7 lib/evertils/common/entity/notes.rb