Class Syndication::RSS::Image
In: lib/syndication/rss.rb
Parent: Syndication::Container

Used to represent graphical images provided in an RSS feed, with the intent that they be used to represent the channel in a graphical user interface, or on a web page.

Typically found via Syndication::Channel#image

Methods

height=   width=  

Attributes

height  [R]  Height of image in pixels, as an integer.
link  [RW]  Link to use when image is clicked on.
title  [RW]  Title of image for use as ALT text.
url  [RW]  URL of image.
width  [R]  Width of image in pixels, as an integer.

Public Instance methods

Set height in pixels.

[Source]

# File lib/syndication/rss.rb, line 105
    def height=(x)
      if x.kind_of?(String)
        @height = x.to_i
      end
    end

Set width in pixels.

[Source]

# File lib/syndication/rss.rb, line 98
    def width=(x)
      if x.kind_of?(String)
        @width = x.to_i
      end
    end

[Validate]