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.



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

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



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

def large
  zoom(3)
end

#mediumObject



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

def medium
  zoom(2)
end

#smallObject



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

def small
  zoom(1)
end

#thumbnailObject



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

def thumbnail
  zoom(5)
end