Class: GoogleBook::Images
- Inherits:
-
Object
- Object
- GoogleBook::Images
- Defined in:
- lib/googlebook/images.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url) ⇒ Images
constructor
A new instance of Images.
- #large ⇒ Object
- #medium ⇒ Object
- #small ⇒ Object
- #thumbnail ⇒ Object
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
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/googlebook/images.rb', line 3 def url @url end |
Instance Method Details
#large ⇒ Object
21 22 23 |
# File 'lib/googlebook/images.rb', line 21 def large zoom(3) end |
#medium ⇒ Object
17 18 19 |
# File 'lib/googlebook/images.rb', line 17 def medium zoom(2) end |
#small ⇒ Object
13 14 15 |
# File 'lib/googlebook/images.rb', line 13 def small zoom(1) end |
#thumbnail ⇒ Object
9 10 11 |
# File 'lib/googlebook/images.rb', line 9 def thumbnail zoom(5) end |