Class: Yummly::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/yummly/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_urlObject

large (360×240)



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

def large_url
  @large_url
end

#medium_urlObject

medium (180×120)



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

def medium_url
  @medium_url
end

#small_urlObject

small (90×60)



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

def small_url
  @small_url
end