Class: KindleNotebook::Highlights
- Inherits:
-
Object
- Object
- KindleNotebook::Highlights
- Defined in:
- lib/kindle_notebook/highlights.rb
Instance Attribute Summary collapse
-
#book ⇒ Object
Returns the value of attribute book.
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize(book) ⇒ Highlights
constructor
A new instance of Highlights.
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
#book ⇒ Object
Returns the value of attribute book.
5 6 7 |
# File 'lib/kindle_notebook/highlights.rb', line 5 def book @book end |
Instance Method Details
#fetch ⇒ Object
11 12 13 14 15 |
# File 'lib/kindle_notebook/highlights.rb', line 11 def fetch open_notebook add_highlights book.highlights end |