Class: Yummly::Image

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_urlObject

large (360×240)



11
12
13
# File 'lib/yummly/image.rb', line 11

def large_url
  @large_url
end

#medium_urlObject

medium (180×120)



8
9
10
# File 'lib/yummly/image.rb', line 8

def medium_url
  @medium_url
end

#small_urlObject

small (90×60)



5
6
7
# File 'lib/yummly/image.rb', line 5

def small_url
  @small_url
end