Class: Yummly::Image
- Inherits:
-
Object
- Object
- Yummly::Image
- Defined in:
- lib/yummly/image.rb
Overview
The image that should be displayed along with the recipe if images are available. Comes in 3 different sizes.
Instance Attribute Summary collapse
-
#large_url ⇒ Object
large (360×240).
-
#medium_url ⇒ Object
medium (180×120).
-
#small_url ⇒ Object
small (90×60).
Instance Method Summary collapse
-
#initialize(values) ⇒ Image
constructor
A new instance of Image.
Constructor Details
#initialize(values) ⇒ Image
Returns a new instance of Image.
13 14 15 16 17 |
# File 'lib/yummly/image.rb', line 13 def initialize(values) @large_url = values["hostedLargeUrl"] @medium_url = values["hostedMediumUrl"] @small_url = values["hostedSmallUrl"] end |
Instance Attribute Details
#large_url ⇒ Object
large (360×240)
11 12 13 |
# File 'lib/yummly/image.rb', line 11 def large_url @large_url end |
#medium_url ⇒ Object
medium (180×120)
8 9 10 |
# File 'lib/yummly/image.rb', line 8 def medium_url @medium_url end |
#small_url ⇒ Object
small (90×60)
5 6 7 |
# File 'lib/yummly/image.rb', line 5 def small_url @small_url end |