Class: Yummly::Image
- Inherits:
-
Object
- Object
- Yummly::Image
- Defined in:
- lib/yummly/image.rb
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.
14 15 16 17 18 |
# File 'lib/yummly/image.rb', line 14 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)
12 13 14 |
# File 'lib/yummly/image.rb', line 12 def large_url @large_url end |
#medium_url ⇒ Object
medium (180×120)
9 10 11 |
# File 'lib/yummly/image.rb', line 9 def medium_url @medium_url end |
#small_url ⇒ Object
small (90×60)
6 7 8 |
# File 'lib/yummly/image.rb', line 6 def small_url @small_url end |