Class: GoogleBook::Images

Inherits:
Object
  • Object
show all
Defined in:
lib/googlebook/images.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ Images

Returns a new instance of Images.



4
5
6
# File 'lib/googlebook/images.rb', line 4

def initialize(url)
  self.url = url
end

Instance Attribute Details

#urlObject

Returns the value of attribute url.



3
4
5
# File 'lib/googlebook/images.rb', line 3

def url
  @url
end

Instance Method Details

#largeObject



20
21
22
# File 'lib/googlebook/images.rb', line 20

def large
  zoom(3)
end

#mediumObject



16
17
18
# File 'lib/googlebook/images.rb', line 16

def medium
  zoom(2)
end

#smallObject



12
13
14
# File 'lib/googlebook/images.rb', line 12

def small
  zoom(1)
end

#thumbnailObject



8
9
10
# File 'lib/googlebook/images.rb', line 8

def thumbnail
  url
end