class ENUtils::NoteList
Attributes
core[R]
options[R]
Public Class Methods
new(core, array, options={})
click to toggle source
Calls superclass method
# File lib/evernote_utils/notelist.rb, line 8 def initialize(core, array, options={}) @core = core @options = options super(array) end
Public Instance Methods
get_total_count()
click to toggle source
findNoteCounts returns
Evernote::EDAM::NoteStore::NoteCollectionCounts notebookCounts:{"xxxxxxxx-...xxx": 10, ...}, tagCounts:{"xxxxxx-...xxxx": 1, ..."}
# File lib/evernote_utils/notelist.rb, line 22 def get_total_count counts = core.notestore.findNoteCounts(core.token, NoteFilter.build(core, options), false) counts.notebookCounts.reduce(0){|sum, pair| sum += pair.last } end
total_count()
click to toggle source
# File lib/evernote_utils/notelist.rb, line 14 def total_count @total_count ||= get_total_count end