Class: Google::Books::ImageLinks

Inherits:
Object
  • Object
show all
Defined in:
lib/bookle/google_books_image_links.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_thumbnailObject (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

#thumbnailObject (readonly)

Returns the value of attribute thumbnail.



4
5
6
# File 'lib/bookle/google_books_image_links.rb', line 4

def thumbnail
  @thumbnail
end