Class: GoogleBooks::API::Book
- Inherits:
-
Object
- Object
- GoogleBooks::API::Book
- Defined in:
- lib/google_books/api/book.rb
Instance Attribute Summary collapse
-
#authors ⇒ Object
readonly
Returns the value of attribute authors.
-
#average_rating ⇒ Object
readonly
Returns the value of attribute average_rating.
-
#categories ⇒ Object
readonly
Returns the value of attribute categories.
-
#covers ⇒ Object
readonly
Returns the value of attribute covers.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#info_link ⇒ Object
readonly
Returns the value of attribute info_link.
-
#isbn ⇒ Object
readonly
Returns the value of attribute isbn.
-
#isbn_10 ⇒ Object
readonly
Returns the value of attribute isbn_10.
-
#page_count ⇒ Object
readonly
Returns the value of attribute page_count.
-
#preview_link ⇒ Object
readonly
Returns the value of attribute preview_link.
-
#published_date ⇒ Object
readonly
Returns the value of attribute published_date.
-
#publisher ⇒ Object
readonly
Returns the value of attribute publisher.
-
#ratings_count ⇒ Object
readonly
Returns the value of attribute ratings_count.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(item) ⇒ Book
constructor
A new instance of Book.
Constructor Details
#initialize(item) ⇒ Book
Returns a new instance of Book.
9 10 11 12 |
# File 'lib/google_books/api/book.rb', line 9 def initialize(item) return if item.nil? parse_item(item) end |
Instance Attribute Details
#authors ⇒ Object (readonly)
Returns the value of attribute authors.
4 5 6 |
# File 'lib/google_books/api/book.rb', line 4 def @authors end |
#average_rating ⇒ Object (readonly)
Returns the value of attribute average_rating.
4 5 6 |
# File 'lib/google_books/api/book.rb', line 4 def @average_rating end |
#categories ⇒ Object (readonly)
Returns the value of attribute categories.
4 5 6 |
# File 'lib/google_books/api/book.rb', line 4 def categories @categories end |
#covers ⇒ Object (readonly)
Returns the value of attribute covers.
4 5 6 |
# File 'lib/google_books/api/book.rb', line 4 def covers @covers end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'lib/google_books/api/book.rb', line 4 def description @description end |
#info_link ⇒ Object (readonly)
Returns the value of attribute info_link.
4 5 6 |
# File 'lib/google_books/api/book.rb', line 4 def info_link @info_link end |
#isbn ⇒ Object (readonly)
Returns the value of attribute isbn.
4 5 6 |
# File 'lib/google_books/api/book.rb', line 4 def isbn @isbn end |
#isbn_10 ⇒ Object (readonly)
Returns the value of attribute isbn_10.
4 5 6 |
# File 'lib/google_books/api/book.rb', line 4 def isbn_10 @isbn_10 end |
#page_count ⇒ Object (readonly)
Returns the value of attribute page_count.
4 5 6 |
# File 'lib/google_books/api/book.rb', line 4 def page_count @page_count end |
#preview_link ⇒ Object (readonly)
Returns the value of attribute preview_link.
4 5 6 |
# File 'lib/google_books/api/book.rb', line 4 def preview_link @preview_link end |
#published_date ⇒ Object (readonly)
Returns the value of attribute published_date.
4 5 6 |
# File 'lib/google_books/api/book.rb', line 4 def published_date @published_date end |
#publisher ⇒ Object (readonly)
Returns the value of attribute publisher.
4 5 6 |
# File 'lib/google_books/api/book.rb', line 4 def publisher @publisher end |
#ratings_count ⇒ Object (readonly)
Returns the value of attribute ratings_count.
4 5 6 |
# File 'lib/google_books/api/book.rb', line 4 def @ratings_count end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/google_books/api/book.rb', line 4 def title @title end |