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.
4 5 6 |
# File 'lib/googlebook/images.rb', line 4 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
20 21 22 |
# File 'lib/googlebook/images.rb', line 20 def large zoom(3) end |
#medium ⇒ Object
16 17 18 |
# File 'lib/googlebook/images.rb', line 16 def medium zoom(2) end |
#small ⇒ Object
12 13 14 |
# File 'lib/googlebook/images.rb', line 12 def small zoom(1) end |
#thumbnail ⇒ Object
8 9 10 |
# File 'lib/googlebook/images.rb', line 8 def thumbnail url end |