Class: Syndication::RSS::Image
- Includes:
- DublinCore
- Defined in:
- lib/syndication/rss.rb,
lib/syndication/dublincore.rb
Overview
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
Instance Attribute Summary collapse
-
#height ⇒ Object
Height of image in pixels, as an integer.
-
#link ⇒ Object
Link to use when image is clicked on.
-
#title ⇒ Object
Title of image for use as ALT text.
-
#url ⇒ Object
URL of image.
-
#width ⇒ Object
Width of image in pixels, as an integer.
Attributes included from DublinCore
#dc_contributor, #dc_coverage, #dc_creator, #dc_date, #dc_description, #dc_format, #dc_identifier, #dc_language, #dc_publisher, #dc_relation, #dc_rights, #dc_source, #dc_subject, #dc_title, #dc_type
Method Summary
Methods inherited from Container
#initialize, #parse_date, #store, #store_category, #strip, #tag2method, #tag_end, #tag_start
Constructor Details
This class inherits a constructor from Syndication::Container
Instance Attribute Details
#height ⇒ Object
Height of image in pixels, as an integer.
95 96 97 |
# File 'lib/syndication/rss.rb', line 95 def height @height end |
#link ⇒ Object
Link to use when image is clicked on.
91 92 93 |
# File 'lib/syndication/rss.rb', line 91 def link @link end |
#title ⇒ Object
Title of image for use as ALT text.
89 90 91 |
# File 'lib/syndication/rss.rb', line 89 def title @title end |
#url ⇒ Object
URL of image.
87 88 89 |
# File 'lib/syndication/rss.rb', line 87 def url @url end |
#width ⇒ Object
Width of image in pixels, as an integer.
93 94 95 |
# File 'lib/syndication/rss.rb', line 93 def width @width end |