Module: K2e
- Extended by:
- DateSupporter
- Defined in:
- lib/k2e.rb,
lib/k2e/kindle.rb,
lib/k2e/version.rb,
lib/k2e/evernote.rb,
lib/k2e/date_supporter.rb
Defined Under Namespace
Modules: DateSupporter Classes: EvernoteClient, Kindle, Note
Constant Summary collapse
- VERSION =
"0.0.2"
Class Method Summary collapse
Methods included from DateSupporter
last_sync_date, update_last_sync_date
Class Method Details
.sync ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/k2e.rb', line 10 def self.sync kindle = Kindle.new kindle.books_highlights.each do |book_title, highlights_content| note = K2e::Note.new( title: book_title, content: highlights_content, notebook_name: ENV["NOTEBOOK"] ) note.update end update_last_sync_date end |