Sha256: a81cb19f64deb4e105929ca6047b127118601afbfe6dcdcd91ee4e44bd7c8d15

Contents?: true

Size: 479 Bytes

Versions: 10

Compression:

Stored size: 479 Bytes

Contents

# The image that should be displayed along with the recipe if images are available. Comes in 3 different sizes.
module Yummly
  class Image

    # small (90×60)
    attr_accessor :small_url

    # medium (180×120)
    attr_accessor :medium_url

    # large (360×240)
    attr_accessor :large_url

    def initialize(values)
      @large_url = values["hostedLargeUrl"]
      @medium_url = values["hostedMediumUrl"]
      @small_url = values["hostedSmallUrl"]
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
yummly-0.0.13 lib/yummly/image.rb
yummly-0.0.12 lib/yummly/image.rb
yummly-0.0.11 lib/yummly/image.rb
yummly-0.0.10 lib/yummly/image.rb
yummly-0.0.9 lib/yummly/image.rb
yummly-0.0.8 lib/yummly/image.rb
yummly-0.0.7 lib/yummly/image.rb
yummly-0.0.6 lib/yummly/image.rb
yummly-0.0.5 lib/yummly/image.rb
yummly-0.0.4 lib/yummly/image.rb