Class: Kindle::Remote::Book

Inherits:
Object
  • Object
show all
Defined in:
lib/kindle/remote/book.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {})
  @asin            = asin
  @title           = options[:title]
  @author          = options[:author]
  @highlight_count = options[:highlight_count]
  @highlights      = []
end

Instance Attribute Details

#asinObject

Returns the value of attribute asin.



4
5
6
# File 'lib/kindle/remote/book.rb', line 4

def asin
  @asin
end

#authorObject

Returns the value of attribute author.



4
5
6
# File 'lib/kindle/remote/book.rb', line 4

def author
  @author
end

#highlight_countObject

Returns the value of attribute highlight_count.



4
5
6
# File 'lib/kindle/remote/book.rb', line 4

def highlight_count
  @highlight_count
end

#highlightsObject

Returns the value of attribute highlights.



4
5
6
# File 'lib/kindle/remote/book.rb', line 4

def highlights
  @highlights
end

#titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/kindle/remote/book.rb', line 4

def title
  @title
end