class RSS::Rss
Attributes
feed_version[W]
rss_version[RW]
Public Class Methods
new(feed_version, version=nil, encoding=nil, standalone=nil)
click to toggle source
Calls superclass method
RSS::RootElementMixin.new
# File lib/rss/0.9.rb, line 29 def initialize(feed_version, version=nil, encoding=nil, standalone=nil) super @feed_type = "rss" end
Public Instance Methods
image()
click to toggle source
# File lib/rss/0.9.rb, line 42 def image if @channel @channel.image else nil end end
items()
click to toggle source
# File lib/rss/0.9.rb, line 34 def items if @channel @channel.items else [] end end
setup_maker_elements(maker)
click to toggle source
Calls superclass method
# File lib/rss/0.9.rb, line 58 def setup_maker_elements(maker) super items.each do |item| item.setup_maker(maker.items) end image.setup_maker(maker) if image textinput.setup_maker(maker) if textinput end
textinput()
click to toggle source
# File lib/rss/0.9.rb, line 50 def textinput if @channel @channel.textInput else nil end end
Private Instance Methods
_attrs()
click to toggle source
# File lib/rss/0.9.rb, line 68 def _attrs [ ["version", true, "feed_version"], ] end