Class: Google::Books::ImageLinks
- Inherits:
-
Object
- Object
- Google::Books::ImageLinks
- Defined in:
- lib/bookle/google_books_image_links.rb
Instance Attribute Summary collapse
-
#small_thumbnail ⇒ Object
readonly
Returns the value of attribute small_thumbnail.
-
#thumbnail ⇒ Object
readonly
Returns the value of attribute thumbnail.
Instance Method Summary collapse
-
#initialize(image_links) ⇒ ImageLinks
constructor
A new instance of ImageLinks.
Constructor Details
#initialize(image_links) ⇒ ImageLinks
Returns a new instance of ImageLinks.
6 7 8 9 10 |
# File 'lib/bookle/google_books_image_links.rb', line 6 def initialize(image_links) image_links = {} unless image_links @small_thumbnail = image_links["smallThumbnail"] @thumbnail = image_links["thumbnail"] end |
Instance Attribute Details
#small_thumbnail ⇒ Object (readonly)
Returns the value of attribute small_thumbnail.
4 5 6 |
# File 'lib/bookle/google_books_image_links.rb', line 4 def small_thumbnail @small_thumbnail end |
#thumbnail ⇒ Object (readonly)
Returns the value of attribute thumbnail.
4 5 6 |
# File 'lib/bookle/google_books_image_links.rb', line 4 def thumbnail @thumbnail end |