Class: KindleNotebook::Highlights

Inherits:
Object
  • Object
show all
Defined in:
lib/kindle_notebook/highlights.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(book) ⇒ Highlights

Returns a new instance of Highlights.



7
8
9
# File 'lib/kindle_notebook/highlights.rb', line 7

def initialize(book)
  @book = book
end

Instance Attribute Details

#bookObject

Returns the value of attribute book.



5
6
7
# File 'lib/kindle_notebook/highlights.rb', line 5

def book
  @book
end

Instance Method Details

#fetchObject



11
12
13
14
15
# File 'lib/kindle_notebook/highlights.rb', line 11

def fetch
  open_notebook
  add_highlights
  book.highlights
end