Class: Kindle::Remote::Book
- Inherits:
-
Object
- Object
- Kindle::Remote::Book
- Defined in:
- lib/kindle/remote/book.rb
Instance Attribute Summary collapse
-
#asin ⇒ Object
Returns the value of attribute asin.
-
#author ⇒ Object
Returns the value of attribute author.
-
#highlight_count ⇒ Object
Returns the value of attribute highlight_count.
-
#highlights ⇒ Object
Returns the value of attribute highlights.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(asin, options = {}) ⇒ Book
constructor
A new instance of Book.
Constructor Details
#initialize(asin, options = {}) ⇒ Book
Returns a new instance of Book.
5 6 7 8 9 10 11 |
# File 'lib/kindle/remote/book.rb', line 5 def initialize(asin, = {}) @asin = asin @title = [:title] @author = [:author] @highlight_count = [:highlight_count] @highlights = [] end |
Instance Attribute Details
#asin ⇒ Object
Returns the value of attribute asin.
4 5 6 |
# File 'lib/kindle/remote/book.rb', line 4 def asin @asin end |
#author ⇒ Object
Returns the value of attribute author.
4 5 6 |
# File 'lib/kindle/remote/book.rb', line 4 def @author end |
#highlight_count ⇒ Object
Returns the value of attribute highlight_count.
4 5 6 |
# File 'lib/kindle/remote/book.rb', line 4 def highlight_count @highlight_count end |
#highlights ⇒ Object
Returns the value of attribute highlights.
4 5 6 |
# File 'lib/kindle/remote/book.rb', line 4 def highlights @highlights end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/kindle/remote/book.rb', line 4 def title @title end |