Class: BookFinder::Book
- Inherits:
-
Object
- Object
- BookFinder::Book
- Defined in:
- lib/bookfinder/book.rb
Instance Attribute Summary collapse
-
#authors ⇒ Object
readonly
Returns the value of attribute authors.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#image_urls ⇒ Object
readonly
Returns the value of attribute image_urls.
-
#page_count ⇒ Object
readonly
Returns the value of attribute page_count.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Book
constructor
A new instance of Book.
Constructor Details
#initialize(options = {}) ⇒ Book
Returns a new instance of Book.
5 6 7 8 9 10 11 12 |
# File 'lib/bookfinder/book.rb', line 5 def initialize( = {}) @title = ['title'] = ['authors'] @page_count = ['pageCount'] @description = ['description'] @image_urls = ['imageLinks'] @published_date = ['publishedDate'] end |
Instance Attribute Details
#authors ⇒ Object (readonly)
Returns the value of attribute authors.
3 4 5 |
# File 'lib/bookfinder/book.rb', line 3 def end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/bookfinder/book.rb', line 3 def description @description end |
#image_urls ⇒ Object (readonly)
Returns the value of attribute image_urls.
3 4 5 |
# File 'lib/bookfinder/book.rb', line 3 def image_urls @image_urls end |
#page_count ⇒ Object (readonly)
Returns the value of attribute page_count.
3 4 5 |
# File 'lib/bookfinder/book.rb', line 3 def page_count @page_count end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
3 4 5 |
# File 'lib/bookfinder/book.rb', line 3 def title @title end |